You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/uui-input/lib/uui-input.element.ts
+4-17Lines changed: 4 additions & 17 deletions
Original file line number
Diff line number
Diff line change
@@ -183,13 +183,8 @@ export class UUIInputElement extends UUIFormControlMixin(
183
183
* @attr
184
184
* @default text
185
185
*/
186
-
@property({type: String})
187
-
gettype(): InputType{
188
-
returnthis._type;
189
-
}
190
-
settype(value: InputType){
191
-
this._type=value;
192
-
}
186
+
@property({attribute: 'type'})
187
+
type: InputType='text';
193
188
194
189
/**
195
190
* 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.
@@ -198,13 +193,8 @@ export class UUIInputElement extends UUIFormControlMixin(
198
193
* @attr
199
194
* @default text
200
195
*/
201
-
@property({type: String})
202
-
getinputMode(): InputMode{
203
-
returnthis._inputMode;
204
-
}
205
-
setinputMode(value: InputMode){
206
-
this._inputMode=value;
207
-
}
196
+
@property({attribute: 'inputmode'})
197
+
inputMode: InputMode='text';
208
198
209
199
/**
210
200
* Validates the input based on the Regex pattern
@@ -217,9 +207,6 @@ export class UUIInputElement extends UUIFormControlMixin(
0 commit comments