We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b02205d commit 056ff7cCopy full SHA for 056ff7c
src/input/ux-input.html
@@ -1,9 +1,6 @@
1
<template role="textbox">
2
<require from="./ux-input-theme"></require>
3
4
- <input styles.input
5
- ref="textbox"
6
- value.bind="value"
7
- type.bind="type" />
+ <input styles.input ref="textbox" value.bind="value" />
8
9
</template>
src/input/ux-input.ts
@@ -67,10 +67,16 @@ export class UxInput implements Themable {
67
}
68
69
70
- if (this.type) {
71
- if (this.type !== 'text' && this.type !== 'password' && this.type !== 'number') {
72
- this.type = 'text';
73
- }
+ if ([
+ 'text',
+ 'password',
+ 'number',
74
+ 'email',
75
+ 'url',
76
+ 'tel',
77
+ 'search'
78
+ ].includes(this.type)) {
79
+ this.textbox.setAttribute('type', this.type);
80
81
82
if (this.min) {
0 commit comments