Skip to content

Commit c532ff1

Browse files
authored
Fix FormInput error on blur (baserow#4797)
1 parent 1797a52 commit c532ff1

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

web-frontend/modules/core/components/FormInput.vue

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,12 @@ function onInput(e) {
134134
}
135135
136136
function onBlur(e) {
137+
if (!input.value) {
138+
// The FormInput element was unmounted in the meantime. It happens in the login
139+
// form for instance if you hit enter after filling the form.
140+
return
141+
}
142+
137143
const raw = input.value.value
138144
139145
if (!raw && props.defaultValueWhenEmpty !== null) {

0 commit comments

Comments
 (0)