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 a725ad3 commit a4d1cf1Copy full SHA for a4d1cf1
src/setValue.js
@@ -27,11 +27,11 @@ const setValue = (el, value) => {
27
let valueType = el.getAttribute('value-type');
28
let prefix = el.getAttribute('value-prefix') || "";
29
if (prefix)
30
- value = value.replace(prefix, "");
+ value = value.toString().replace(prefix, "");
31
32
let suffix = el.getAttribute('value-suffix') || "";
33
if (suffix)
34
- value = value.replace(suffix, "");
+ value = value.toString().replace(suffix, "");
35
36
if (el.tagName == 'INPUT' || el.tagName == 'TEXTAREA' || el.tagName == 'SELECT') {
37
let { isCrdt } = getAttributes(el)
0 commit comments