Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix modal confirms for 3.x #10478

Closed
wants to merge 1 commit into from
Closed

Fix modal confirms for 3.x #10478

wants to merge 1 commit into from

Conversation

sgiehl
Copy link
Member

@sgiehl sgiehl commented Sep 7, 2016

When opening a modal confirm for a specific element, the element is currently moved into the modal box. Closing the box, doesn't move it back, so recreating won't work, as the content can't be found anymore.

With this small change the content is cloned before using it for modal confirm.

To reproduce the failure, simply try to remove a segment, click no, and try it again.

Note: Maybe we should refactor the modal confirm later. As closing modals doesn't remove the modal from dom.

otherwise the content can't be found anymore, as soon as the modal should be opened a second time
@sgiehl sgiehl added not-in-changelog For issues or pull requests that should not be included in our release changelog on matomo.org. c: Design / UI For issues that impact Matomo's user interface or the design overall. Needs Review PRs that need a code review Regression Indicates a feature used to work in a certain way but it no longer does even though it should. labels Sep 7, 2016
@sgiehl sgiehl added this to the 3.0.0-b1 milestone Sep 7, 2016
@sgiehl
Copy link
Member Author

sgiehl commented Sep 7, 2016

Seems this breaks UI for SitesManager admin. Guess we need to find another solution. I'll create a issue, so we don't forget

@sgiehl sgiehl closed this Sep 7, 2016
@sgiehl sgiehl deleted the fixmodals branch September 26, 2016 11:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c: Design / UI For issues that impact Matomo's user interface or the design overall. Needs Review PRs that need a code review not-in-changelog For issues or pull requests that should not be included in our release changelog on matomo.org. Regression Indicates a feature used to work in a certain way but it no longer does even though it should.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant