Open maxpatiiuk opened 1 month ago
Types for autocomplete
, inputMode
and enterKeyHint
won't be necessary since we'll drop these props in favor of the global attributes (see https://github.com/Esri/calcite-design-system/issues/9260 for more info on the last 2 props).
Check existing issues
Description
Inline with https://github.com/Esri/calcite-design-system/pull/9915, it appears that Calcite will tighten property typings in a future release.
A few more candidates for tightening to be considered:
string
, could make it"submit" | "reset" | "button"
)string
, could make itAutoFill
- it's a built-in TypeScript type)string
, could make it"enter" | "done" | "go" | "next" | "previous" | "search" | "send"
) (though, this property is not public)string
, could make it"none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search"
) (though, this property is not public)(the above tighter types would match Lumina JSX typings; until then, I had to add type assertions in
render()
to avoid TypeScript errors)Acceptance Criteria
Consider tightening the types.
Relevant Info
This is what I had to do for now in
render()
:Which Component
listed above
Example Use Case
No response
Priority impact
impact - p3 - not time sensitive
Calcite package
Esri team
ArcGIS Maps SDK for JavaScript