Skip to content

Commit

Permalink
fix(input, input-number, input-text): ensure autofocus is available o…
Browse files Browse the repository at this point in the history
…n HTMLElement (#9343)

**Related Issue:** #9235

## Summary

Exposes `autofocus` property to ensure the prop/attr is available on the
`HTMLElement` type.

This should no longer be necessary once
ionic-team/stencil#5726 is fixed and available
in Stencil.
  • Loading branch information
jcfranco authored May 15, 2024
1 parent 590e0e4 commit 405a4b0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ export class InputNumber
/**
* Adds global prop, missing from Stencil's `HTMLElement` type, see https://github.com/ionic-team/stencil/issues/5726
*
* @internal
* @ignore
*/
// eslint-disable-next-line @stencil-community/reserved-member-names
@Prop() autofocus: boolean;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ export class InputText
/**
* Adds global prop, missing from Stencil's `HTMLElement` type, see https://github.com/ionic-team/stencil/issues/5726
*
* @internal
* @ignore
*/
// eslint-disable-next-line @stencil-community/reserved-member-names
@Prop() autofocus: boolean;
Expand Down
2 changes: 1 addition & 1 deletion packages/calcite-components/src/components/input/input.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ export class Input
/**
* Adds global prop, missing from Stencil's `HTMLElement` type, see https://github.com/ionic-team/stencil/issues/5726
*
* @internal
* @ignore
*/
// eslint-disable-next-line @stencil-community/reserved-member-names
@Prop() autofocus: boolean;
Expand Down

0 comments on commit 405a4b0

Please sign in to comment.