Skip to content

Commit

Permalink
Fix js error on capslock checking
Browse files Browse the repository at this point in the history
  • Loading branch information
Bubka committed Nov 19, 2024
1 parent 9c917ab commit 97059cb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion resources/js/components/formElements/FormPasswordField.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 97059cb

Please sign in to comment.