Skip to content

Fix opening edit dialog twice when closed by clicking on overlay#2290

Merged
balloob merged 1 commit intodevfrom
fix-opening-edit-dialog-twice
Dec 13, 2018
Merged

Fix opening edit dialog twice when closed by clicking on overlay#2290
balloob merged 1 commit intodevfrom
fix-opening-edit-dialog-twice

Conversation

@balloob
Copy link
Copy Markdown
Member

@balloob balloob commented Dec 13, 2018

When the edit dialog was closed by clicking on the overlay, we didn't reset the state of the edit dialog manager. This meant that if we tried to open it again, it would render the same element, which meant it didn't need to change anything, and so also didn't reset opened.

Fixing by listening to when dialog is closed and calling cancel.

Fixes #2283

@ghost ghost assigned balloob Dec 13, 2018
@ghost ghost added the in progress label Dec 13, 2018
@bramkragten
Copy link
Copy Markdown
Member

This was intentional at first, clicking cancel would cancel, clicking outside the dialog would close not cancel, opening the same again would get you on the same position as you left. On opening another element it updated.

@balloob
Copy link
Copy Markdown
Member Author

balloob commented Dec 13, 2018

I don't think users expect such behavior.

@bramkragten
Copy link
Copy Markdown
Member

I'm fine with this :) Idea was for clicking next to the dialog by accident.

@balloob balloob merged commit 71ed83e into dev Dec 13, 2018
@delete-merged-branch delete-merged-branch bot deleted the fix-opening-edit-dialog-twice branch December 13, 2018 20:47
@ghost ghost removed the in progress label Dec 13, 2018
@balloob balloob added this to the 0.84.3 milestone Dec 16, 2018
@balloob balloob modified the milestone: 0.84.3 Dec 17, 2018
This was referenced Dec 17, 2018
@github-actions github-actions bot locked and limited conversation to collaborators Jul 7, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Lovelace - Configure UI

3 participants