api-issue-tracker icon indicating copy to clipboard operation
api-issue-tracker copied to clipboard

HTML date picker cannot be clicked when HTMLDialog is opened as a modal

Open sasmithjr opened this issue 1 year ago • 2 comments

  1. SketchUp/LayOut Version: SketchUp 24.0.598
  2. OS Platform: macOS 15.1.1

When I open an HTMLDialog as a modal, users are unable to interact with the HTML date picker (<input type="date" />). It works as expected when using dialog.show, but dialog.show_modal does not. The user can still type the date in to the input by hand; it's the visual calendar that cannot be clicked.

Reproduction of the issue: https://github.com/sasmithjr/su-modal-input-date

The repro is an extension with two menu items:

  1. Open an HTML file containing a <input type="date" /> in an HTMLDialog opened with dialog.show
  2. Open the same HTML file in an HTMLDialog opened with dialog.show_modal

The first option is to demonstrate that the date picker can be interacted with when the dialog is opened with dialog.show, and the second option is to demonstrate the issue.

Expected behavior is that the user should be able to interact w/ the HTML date picker when the HTMLDialog is opened as a modal.

sasmithjr avatar Dec 03 '24 17:12 sasmithjr

https://github.com/user-attachments/assets/98a06f86-80a9-41c9-8499-d2e3e44fb2cf

Here is a quick demo of the issue.

sasmithjr avatar Dec 03 '24 17:12 sasmithjr

Logged as: SKEXT-4421

sketchup[bot] avatar Dec 09 '24 06:12 sketchup[bot]