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

[Bug] Collection detail: only update dialog state on close event if close event originates from dialog #1793

Merged

Conversation

emma-sg
Copy link
Member

@emma-sg emma-sg commented May 8, 2024

Closes #1553

Changes

Adds a check on sl-hide events to ensure that only the events originating from the elements we want to listen to are acted on

@emma-sg emma-sg added bug Something isn't working front end Requires front end dev work labels May 8, 2024
@emma-sg emma-sg requested a review from SuaYoo May 8, 2024 22:09
@emma-sg emma-sg self-assigned this May 8, 2024
Copy link
Collaborator

@SuaYoo SuaYoo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sweet! Maybe we consider adding this to btrix-dialog and stop propagation there.

@emma-sg emma-sg requested a review from SuaYoo May 9, 2024 20:18
Comment on lines -179 to +180
label=${msg("Delete Collection?")}
?open=${this.openDialogName === "delete"}
.label=${msg("Delete Collection?")}
.open=${this.openDialogName === "delete"}
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just changed these cause my editor was raising warnings about them, I know it doesn't change any functionality

@emma-sg emma-sg merged commit 76cd19d into main May 14, 2024
2 checks passed
@emma-sg emma-sg deleted the frontend-fix-collection-share-dialog-closing-on-tooltip-close branch May 14, 2024 19:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working front end Requires front end dev work
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: Activating tooltips on the collection share dialog closes the dialog
2 participants