Allow native focus options to be passed in to setFocus
#8132
Labels
0 - new
New issues that need assignment.
ArcGIS Field Apps
Issues logged by ArcGIS Field Apps team members.
calcite-components
Issues specific to the @esri/calcite-components package.
enhancement
Issues tied to a new feature or request.
estimate - 8
Requires input from team, consider smaller steps.
impact - p3 - not time sensitive
User set priority impact status of p3 - not time sensitive
needs milestone
Planning workflow - pending milestone assignment, has priority and/or estimate.
p - low
Issue is non core or affecting less that 10% of people using the library
Check existing issues
Description
Since the
setFocus
method oncalcite-input
calls the nativefocus
method,setFocus
should accept the nativefocus
options: https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/focus#parameters. For example, thepreventScroll
option is useful to prevent clashing between css animations and browser scrolling.Acceptance Criteria
The
setFocus
method on acalcite-input
element should accept nativefocus
methods and callfocus
with those options.Relevant Info
https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/focus#parameters
Which Component
Any component with a
setFocus
method (eg.calcite-input
,calcite-input-number
,calcite-input-text
, etc.).Example Use Case
Priority impact
p4 - not time sensitive
Calcite package
Esri team
ArcGIS Field Apps
The text was updated successfully, but these errors were encountered: