Skip to content

Commit

Permalink
Fix MacOS paste in MsCodeValidationInput
Browse files Browse the repository at this point in the history
  • Loading branch information
Ironicbay committed Jul 18, 2024
1 parent df35889 commit 5a77fda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/components/ms-input/MsCodeValidationInput.vue
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ async function checkCode(): Promise<void> {
}
function onKeydown(event: KeyboardEvent): void {
if (!isDigits(event.key) && !event.ctrlKey) {
if (!isDigits(event.key) && !event.ctrlKey && !event.metaKey) {
event.preventDefault();
}
}
Expand Down

0 comments on commit 5a77fda

Please sign in to comment.