File tree Expand file tree Collapse file tree 2 files changed +11
-4
lines changed Expand file tree Collapse file tree 2 files changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,6 @@ export class UUIInputPasswordElement extends UUIInputElement {
32
32
33
33
// this overrides the inherited type property, and moves the input's type handling to the passwordType state.
34
34
@property ( )
35
- // @ts -ignore
36
35
get type ( ) {
37
36
return this . passwordType ;
38
37
}
Original file line number Diff line number Diff line change 1
- import { LitElement , html , css } from 'lit ' ;
1
+ import { FormControlMixin } from '@umbraco-ui/uui-base/lib/mixins ' ;
2
2
import { defineElement } from '@umbraco-ui/uui-base/lib/registration' ;
3
+ import { css , html , LitElement } from 'lit' ;
3
4
import { property , query } from 'lit/decorators.js' ;
4
- import { FormControlMixin } from '@umbraco-ui/uui-base/lib/mixins' ;
5
+
5
6
import { UUIInputEvent } from './UUIInputEvent' ;
6
7
7
8
export type InputType =
@@ -211,11 +212,18 @@ export class UUIInputElement extends FormControlMixin(LitElement) {
211
212
* @default text
212
213
*/
213
214
@property ( { type : String } )
214
- type : InputType = 'text' ;
215
+ get type ( ) : InputType {
216
+ return this . _type ;
217
+ }
218
+ set type ( value : InputType ) {
219
+ this . _type = value ;
220
+ }
215
221
216
222
@query ( '#input' )
217
223
_input ! : HTMLInputElement ;
218
224
225
+ private _type : InputType = 'text' ;
226
+
219
227
constructor ( ) {
220
228
super ( ) ;
221
229
You can’t perform that action at this time.
0 commit comments