Popover should only get closed when clicking outside if the click was not initiated inside #9506
Open
2 of 6 tasks
Labels
0 - new
New issues that need assignment.
ArcGIS Scene Viewer
Issues logged by ArcGIS Scene Viewer team members
calcite-components
Issues specific to the @esri/calcite-components package.
enhancement
Issues tied to a new feature or request.
impact - p3 - not time sensitive
User set priority impact status of p3 - not time sensitive
needs triage
Planning workflow - pending design/dev review.
Check existing issues
Description
At the time of writing, the
<calcite-popover auto-close>
is closed when the user clicks outside of it, even if the pointer/mouse down was done inside of the popover. That makes it very easy to accidentally the popover when selecting text, in it, for example: a user presses the mouse and starts dragging to select the text, but releases the pointer outside of the popover, causing it to be closed.This is fairly easy to work around by tracking
pointerdown
andmousedown
and then usingonCalcitePopoverBeforeClose
to prevent the dialog being closed if the down events happened outside of the popover. However, it would be nicer if it was supported directly by Calcite.Acceptance Criteria
The popover should only be automatically closed if the "full click" gesture happened outside of it.
Relevant Info
No response
Which Component
Example Use Case
This came up in the context of the SceneViewer application which sometimes uses a popover with an input inside for renaming certain things. If the user tries to select the text in the input but releases the mouse outside, the popover gets closed.
Priority impact
impact - p3 - not time sensitive
Calcite package
Esri team
ArcGIS Scene Viewer
The text was updated successfully, but these errors were encountered: