タグ入力確定時のフォールバック処理を追加

This commit is contained in:
MitarashiDango 2019-08-09 00:57:14 +09:00
parent dddb47f68a
commit 8594caade1

View File

@ -46,6 +46,14 @@
}
event.preventDefault();
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") {
//