Fixed contenteditable save

This commit is contained in:
2018-10-11 12:09:12 +09:00
parent fc96fe861e
commit b2f9754a19
3 changed files with 3 additions and 5 deletions

View File

@ -1019,8 +1019,7 @@ export default class AnimeNotifier {
// Disallow Enter key in contenteditables and make it blur the element instead
if(e.keyCode === 13) {
if("blur" in activeElement) {
let blur = activeElement["blur"] as Function
blur()
(activeElement["blur"] as Function)()
}
return preventDefault()