Skip to content

Commit 37da63f

Browse files
committed
revert back to accessor field in order not to break descendants
1 parent a109962 commit 37da63f

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

packages/uui-input/lib/uui-input.element.ts

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,8 +184,13 @@ export class UUIInputElement extends UUIFormControlMixin(
184184
* @attr
185185
* @default text
186186
*/
187-
@property({ attribute: 'type' })
188-
type: InputType = 'text';
187+
@property({ type: String })
188+
get type(): InputType {
189+
return this._type;
190+
}
191+
set type(value: InputType) {
192+
this._type = value;
193+
}
189194

190195
/**
191196
* The inputmode global attribute is an enumerated attribute that hints at the type of data that might be entered by the user while editing the element or its contents. This allows a browser to display an appropriate virtual keyboard.
@@ -208,6 +213,8 @@ export class UUIInputElement extends UUIFormControlMixin(
208213
@query('#input')
209214
_input!: HTMLInputElement;
210215

216+
private _type: InputType = 'text';
217+
211218
constructor() {
212219
super();
213220

0 commit comments

Comments
 (0)