Esri / calcite-design-system

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

Programmatically blur Calcite Input (Text, Number, ...) #8257

Open yannikmesserli opened 7 months ago

yannikmesserli commented 7 months ago

Check existing issues

Description

There is setFocus method on every Calcite Inputs that allows users to programmatically focus the underlying input. We need a setBlur method to blur the even as well.

Code pen https://codepen.io/yannikm/pen/KKJeMJm?editors=100

Acceptance Criteria

Calcite Inputs exposes a setBlur method.

Relevant Info

No response

Which Component

Calcite Input, Text Input, Number Input.

Example Use Case

In Urban, we want to add the key press enter to blur the input.

Priority impact

p4 - not time sensitive

Calcite package

Esri team

ArcGIS Urban

geospatialem commented 1 week ago

Estimate is related to all components that currently contain a setFocus method, to add a setBlur method.