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 bdc6e8a commit ee8538dCopy full SHA for ee8538d
src/setValue.js
@@ -15,7 +15,6 @@ HTMLHeadingElement.prototype.setValue = function (value) {
15
16
// TODO: check if using a a switch case will provide better performance
17
const setValue = (el, value) => {
18
-
19
if (value === null || value === undefined) return;
20
if (el.hasAttribute('component') || el.hasAttribute('plugin'))
21
return storage.set(el, value)
@@ -73,9 +72,12 @@ const setValue = (el, value) => {
73
72
options[i].selected = "";
74
}
75
76
- } else
77
- el.value = value;
+ } else {
+ if (el.value === value)
+ return
78
79
+ el.value = value;
80
+ }
81
dispatchEvents(el)
82
} else if (el.tagName === 'IMG' || el.tagName === 'SOURCE') {
83
el.src = value;
0 commit comments