Esri / calcite-design-system

A monorepo containing the packages for Esri's Calcite Design System
https://developers.arcgis.com/calcite-design-system/
Other
270 stars 75 forks source link

Popup of the input-time-picker is not being closed when empty after clicking outside the control #8639

Open pandzel opened 5 months ago

pandzel commented 5 months ago

Check existing issues

Actual Behavior

Popup stays on the screen after clicking anywhere outside the control if no hours selected in the popup.

Expected Behavior

Popup should disappear. It does disappear but after selecting full time in the popup. Also, input-date-picker works correctly in the identical scenario.

Reproduction Sample

https://developers.arcgis.com/calcite-design-system/components/input-time-picker/

Reproduction Steps

Reproduction Version

2.2.0

Relevant Info

No response

Regression?

No response

Priority impact

p4 - not time sensitive

Impact

No response

Calcite package

Esri team

ArcGIS Online

nwhittaker commented 2 months ago

Seeing the same bug with non-empty time pickers as well (repro):

https://github.com/Esri/calcite-design-system/assets/421496/12288ab6-8197-41d1-b259-682c0a65e3b5


After opening the time picker by clicking its caret button, it doesn't exhibit the expected auto-close behavior (closed by outside click) until the user changes its value in the picker:

https://github.com/Esri/calcite-design-system/assets/421496/2e7b0e7c-d44b-4a0e-a150-9e1e67fcb5dc


Interestingly, if the non-empty picker is opened by clicking anywhere else on the input, the expected auto-close behavior is maintained:

https://github.com/Esri/calcite-design-system/assets/421496/3ff5fba3-1f50-47dd-810e-f10dfdda7db7