Merge pull request #252 from MitarashiDango/fix_tag_input_android

タグ入力確定時のフォールバック処理を追加
This commit is contained in:
shibafu 2019-08-29 00:18:07 +09:00 committed by GitHub
commit 4940b7a9ca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -46,6 +46,14 @@
} }
event.preventDefault(); event.preventDefault();
break; break;
case 'Unidentified':
// ()
if (event.srcElement && (event.srcElement as HTMLInputElement).value.slice(-1) == ' ') {
this.tags.push(this.buffer);
this.buffer = "";
event.preventDefault();
}
break;
} }
} else if (event.key === "Enter") { } else if (event.key === "Enter") {
// //