Disable Close on Back Button Popup

Hi… is there anyway to disable close popup on back button. I mean the only way to close the popup is by clicking on close button.

The problem is on my form. I created form input in popup. When I write something on input form the keyboard shortcut is displaying. What I want is when I press back button on my Android phone it should only close the keyboard shortcut not the popup. What could I add on my code.?

I believe you can disable default. Then programmatically do what you want.

The problem is on datepicker. I create datepicker input on popup. When I press back button to close datepicker, the popup suddently close not the datepicker form. How to resolve this…?

I suppose that you are useing pushState: true.
In my case, i’v solve it adding this to the selects, popups…

data-close-on-select=“true” data-routable-modals=“false”

the data-routable-modals=“false” do the trick…

hope it helps and sorry for my english