|
@@ -42,7 +42,7 @@ export function handleAttributeBindingDirective(component, el, attrName, express
|
|
|
}
|
|
|
} else if (el.tagName === 'SELECT') {
|
|
|
updateSelect(el, value)
|
|
|
- } else {
|
|
|
+ } else if (el.type === 'text') {
|
|
|
// Cursor position should be restored back to origin due to a safari bug
|
|
|
const selectionStart = el.selectionStart
|
|
|
const selectionEnd = el.selectionEnd
|
|
@@ -53,6 +53,8 @@ export function handleAttributeBindingDirective(component, el, attrName, express
|
|
|
if (el === document.activeElement && selectionStart !== null) {
|
|
|
el.setSelectionRange(selectionStart, selectionEnd, selectionDirection)
|
|
|
}
|
|
|
+ } else {
|
|
|
+ el.value = value
|
|
|
}
|
|
|
} else if (attrName === 'class') {
|
|
|
if (Array.isArray(value)) {
|