Skip to content

Commit 7b644e1

Browse files
committed
fix: insert select options from src file
1 parent d3202c2 commit 7b644e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/setValue.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ const setValue = (el, value, dispatch) => {
3333
if (suffix)
3434
value = value.toString().replace(suffix, "");
3535

36-
if (el.tagName == 'INPUT' || el.tagName == 'TEXTAREA' || el.tagName == 'SELECT') {
36+
if (el.tagName == 'INPUT' || el.tagName == 'TEXTAREA' || el.tagName == 'SELECT' && el.options.length) {
3737
let { isCrdt } = getAttributes(el)
3838
if (isCrdt == null || isCrdt == undefined)
3939
isCrdt = el.getAttribute('crdt')

0 commit comments

Comments
 (0)