mirror of
https://github.com/vale981/tridactyl
synced 2025-03-05 09:31:41 -05:00
Stop TS breaking everything
This is very annoying - I built this, it worked, but `tslint` changed ['readOnly'] to .readOnly and broke Tridactyl
This commit is contained in:
parent
cf1c136f35
commit
4276cd68e9
1 changed files with 1 additions and 1 deletions
|
@ -23,7 +23,7 @@ const logger = new Logging.Logger("dom")
|
|||
*/
|
||||
export function isTextEditable(element: Element) {
|
||||
if (element) {
|
||||
if (element.readOnly === true) return false
|
||||
if ((element as any).readOnly === true) return false
|
||||
// HTML is always upper case, but XHTML is not necessarily upper case
|
||||
if (element.nodeName.toUpperCase() === "INPUT") {
|
||||
return isEditableHTMLInput(element as HTMLInputElement)
|
||||
|
|
Loading…
Add table
Reference in a new issue