Skip to content

Commit c7039a6

Browse files
committed
fix: div element return condtions
1 parent c658bc2 commit c7039a6

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
@@ -67,7 +67,7 @@ const setValue = (el, value) => {
6767
else {
6868
if (el.hasAttribute('contenteditable') && el == document.activeElement) return;
6969
if (el.tagName === 'DIV') {
70-
if (!el.classList.contains('domEditor') || !el.hasAttribute('get-value') || !el.hasAttribute('get-value-closest'))
70+
if (!el.classList.contains('domEditor') && !el.hasAttribute('get-value') && !el.hasAttribute('get-value-closest'))
7171
return
7272
}
7373

0 commit comments

Comments
 (0)