fix: Element translation with hint is not working (#8)

pull/9/head
Jad 2023-03-08 17:43:30 +08:00 committed by GitHub
parent f0a55b07c7
commit c1d25ae239
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -182,6 +182,7 @@
case 'title':
el.title = `${translation}\n${source}`
Object.defineProperty(el, 'title', { writable: false }) // prevent title overwritten by hint.js
break;
case 'placeholder':