forked from ElemeFE/element
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Input / Select: fix Korean IME composition bug (ElemeFE#10648)
* Input: fix cursor goes to the end of the text(ElemeFE#10611) * Input: fix cursor goes to the end of the text(ElemeFE#10611) * Update input.vue * Update select.vue * Update input.vue
- Loading branch information
1 parent
769db14
commit 783cb26
Showing
3 changed files
with
13 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
export function isDef(val) { | ||
return val !== undefined && val !== null; | ||
} | ||
export function isKorean(text) { | ||
const reg = /([(\uAC00-\uD7AF)|(\u3130-\u318F)])+/gi; | ||
return reg.test(text); | ||
} |