소스 검색

fix: replace deprecated @keypress with @keydown for Enter key handling (#4258)

handsomeFu 7 달 전
부모
커밋
c439d5601f
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      packages/effects/common-ui/src/ui/authentication/login.vue

+ 1 - 1
packages/effects/common-ui/src/ui/authentication/login.vue

@@ -91,7 +91,7 @@ function handleGo(path: string) {
 </script>
 
 <template>
-  <div @keypress.enter.prevent="handleSubmit">
+  <div @keydown.enter.prevent="handleSubmit">
     <Title>
       {{ title || `${$t('authentication.welcomeBack')} 👋🏻` }}
       <template #desc>