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 9ca8759 commit 30d3784Copy full SHA for 30d3784
components/InputField.vue
@@ -6,7 +6,13 @@
6
:class="['inputField', { 'inputField-error': showError }]"
7
:style="{ fontSize: fontSizeMap.get(fontSize) }"
8
:type="definedType"
9
- :pattern="type === 'number' ? '\\d*' : null"
+ :pattern="
10
+ type === 'number'
11
+ ? '\\d*'
12
+ : type === 'datetime-local'
13
+ ? '[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}'
14
+ : null
15
+ "
16
:name="name"
17
:placeholder="placeholder"
18
:step="step"
0 commit comments