From 343815bbdabc75bf2195065afeb0494ef5c6b853 Mon Sep 17 00:00:00 2001 From: martonp Date: Fri, 1 Nov 2024 10:23:38 +0100 Subject: [PATCH] app: Fix market page form close Fixes a bug related to closing popups on the market page. --- client/webserver/site/src/js/markets.ts | 9 --------- 1 file changed, 9 deletions(-) diff --git a/client/webserver/site/src/js/markets.ts b/client/webserver/site/src/js/markets.ts index 0c55b22a68..772485766e 100644 --- a/client/webserver/site/src/js/markets.ts +++ b/client/webserver/site/src/js/markets.ts @@ -159,7 +159,6 @@ export default class MarketsPage extends BasePage { maxLoaded: (() => void) | null maxOrderUpdateCounter: number market: CurrentMarket - currentForm: HTMLElement openAsset: SupportedAsset currentCreate: SupportedAsset maxEstimateTimer: number | null @@ -421,14 +420,6 @@ export default class MarketsPage extends BasePage { this.forms.close() } - // If the user clicks outside of a form, it should close the page overlay. - 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)) { - closePopups() - } - }) - this.keyup = (e: KeyboardEvent) => { if (e.key === 'Escape') { closePopups()