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

app: Fix market page form close #3053

Merged
merged 1 commit into from
Nov 11, 2024

Conversation

martonp
Copy link
Contributor

@martonp martonp commented Nov 1, 2024

Fixes a bug related to closing popups on the market page.

Comment on lines 424 to 429
bind(page.forms, 'mousedown', (e: MouseEvent) => {
if (Doc.isDisplayed(page.vDetailPane) && !Doc.mouseInElement(e, page.vDetailPane)) return this.showVerifyForm()
if (!Doc.mouseInElement(e, this.currentForm)) {
if (this.forms.currentForm && !Doc.mouseInElement(e, this.forms.currentForm)) {
closePopups()
}
})
Copy link
Member

Choose a reason for hiding this comment

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

Hmm. Why is this even here? Doesn't the Forms class take care of this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed.

@martonp martonp force-pushed the fixMarketPageFormClose branch from 692651e to 343815b Compare November 8, 2024 04:24
Fixes a bug related to closing popups on the market page.
@martonp martonp force-pushed the fixMarketPageFormClose branch from 343815b to b138e04 Compare November 8, 2024 04:39
@buck54321 buck54321 merged commit 54f51cb into decred:master Nov 11, 2024
5 checks passed
buck54321 pushed a commit to buck54321/dcrdex that referenced this pull request Nov 12, 2024
Fixes a bug related to closing popups on the market page.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants