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 d3202c2 commit 7b644e1Copy full SHA for 7b644e1
src/setValue.js
@@ -33,7 +33,7 @@ const setValue = (el, value, dispatch) => {
33
if (suffix)
34
value = value.toString().replace(suffix, "");
35
36
- if (el.tagName == 'INPUT' || el.tagName == 'TEXTAREA' || el.tagName == 'SELECT') {
+ if (el.tagName == 'INPUT' || el.tagName == 'TEXTAREA' || el.tagName == 'SELECT' && el.options.length) {
37
let { isCrdt } = getAttributes(el)
38
if (isCrdt == null || isCrdt == undefined)
39
isCrdt = el.getAttribute('crdt')
0 commit comments