Skip to content

Commit 0d5338a

Browse files
committed
fix #46
1 parent 3e98752 commit 0d5338a

File tree

3 files changed

+13
-3
lines changed

3 files changed

+13
-3
lines changed

dist/js/brutusin-json-forms.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,12 @@ if (typeof brutusin === "undefined") {
211211
value = null;
212212
}
213213
} else if (s.format === "date-time") {
214-
input.type = "datetime-local";
214+
try {
215+
input.type = "datetime-local";
216+
} catch (err) {
217+
// #46, problem in IE11. TODO polyfill?
218+
input.type = "text";
219+
}
215220
} else if (s.format === "email") {
216221
input.type = "email";
217222
} else if (s.format === "text") {

0 commit comments

Comments
 (0)