fix(frontend): MkDialogのinputで字数制限に違反していてもEnterキーが押せてしまうのを修正 (#13677)
* MkDialogのinputで字数制限に違反していてもEnterキーが押せてしまうのを修正 * update CHANGELOG.md
This commit is contained in:
parent
b322f55c87
commit
7586ef7ba8
2 changed files with 2 additions and 1 deletions
|
@ -161,7 +161,7 @@ function onKeydown(evt: KeyboardEvent) {
|
|||
}
|
||||
|
||||
function onInputKeydown(evt: KeyboardEvent) {
|
||||
if (evt.key === 'Enter') {
|
||||
if (evt.key === 'Enter' && okButtonDisabledReason.value === null) {
|
||||
evt.preventDefault();
|
||||
evt.stopPropagation();
|
||||
ok();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue