Calcite-components: Enhancement: calcite-color-picker (calciteColorPickerChange)

Created on 10 Jun 2021  路  3Comments  路  Source: Esri/calcite-components

Description

When using calcite-color-picker, the calciteColorPickerChange event fires while the thumb is dragged.

Acceptance Criteria

Detect a value change only when the user completes the thumb drag.

Which Component

calcite-color-picker

Example Use Case

Configuration app makes network requests when input events are fired and has very chatty behavior with the current behavior of the calciteColorPickerChangeevent. It would be ideal if a value is written once when a user completes a thumb drag rather than writing multiple values from a series of calciteColorPickerChange event fires during the thumb drag.

1 - assigned enhancement

All 3 comments

Did some research on this and found a few libs that do this via 2 events (similar to <input>'s input and change events):

I think following input + change would be the simplest option. These names align with existing events with the same semantics and we could apply this to other components as well.

@driskull @eriklharper @paulcpederson WDYT?

Agreed. input + change.

input + change feels right, its the most idiomatic.

Was this page helpful?
0 / 5 - 0 ratings