Skip to content

app: Fix market page form close - #3053

Merged
buck54321 merged 1 commit into
decred:masterfrom
martonp:fixMarketPageFormClose
Nov 11, 2024
Merged

app: Fix market page form close#3053
buck54321 merged 1 commit into
decred:masterfrom
martonp:fixMarketPageFormClose

Conversation

@martonp

@martonp martonp commented Nov 1, 2024

Copy link
Copy Markdown
Collaborator

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

Comment thread client/webserver/site/src/js/markets.ts Outdated
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
Copy Markdown
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
Copy Markdown
Collaborator 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
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