From c07d76e2a4f76073562616244719d6151634baf7 Mon Sep 17 00:00:00 2001 From: Alex Turchyn Date: Wed, 9 Sep 2026 22:47:09 +0300 Subject: [PATCH] open all modals as sheets in the native app --- app/javascript/elements/open_modal_mobile.js | 1 + 1 file changed, 1 insertion(+) diff --git a/app/javascript/elements/open_modal_mobile.js b/app/javascript/elements/open_modal_mobile.js index 4096f1f6a..a326af919 100644 --- a/app/javascript/elements/open_modal_mobile.js +++ b/app/javascript/elements/open_modal_mobile.js @@ -1,6 +1,7 @@ export default class extends HTMLElement { connectedCallback () { if (this.dataset.disabled === 'true') return + if (/Hotwire Native/.test(navigator.userAgent)) return if (!this.isMobile()) return if (window.innerWidth >= 768) return