diff --git a/resources/js/components/formElements/FormPasswordField.vue b/resources/js/components/formElements/FormPasswordField.vue index 408ada30..73c1a732 100644 --- a/resources/js/components/formElements/FormPasswordField.vue +++ b/resources/js/components/formElements/FormPasswordField.vue @@ -64,7 +64,9 @@ }) function checkCapsLock(event) { - hasCapsLockOn.value = event.getModifierState('CapsLock') ? true : false + if (typeof event.getModifierState === 'function') { + hasCapsLockOn.value = event.getModifierState('CapsLock') ? true : false + } } function setFieldType(event) {