Esri / calcite-design-system

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

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

Open yannikmesserli opened 1 year ago

yannikmesserli commented 1 year 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 5 months ago

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