Skip to content

Commit 93c8aad

Browse files
authored
Fix blur event triggered on unmounted element (baserow#4805)
1 parent 4d9092a commit 93c8aad

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

web-frontend/modules/database/mixins/dateField.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,9 @@ export default {
208208
* hidden.
209209
*/
210210
blur(context, event) {
211-
context.hide()
211+
// The ?. prevents an exception when the context was removed from the DOM then
212+
// the blur event is triggered
213+
context?.hide()
212214
},
213215
},
214216
}

0 commit comments

Comments
 (0)