ignore events from contenteditable
This commit is contained in:
parent
f2a42c50d9
commit
10beccfab2
1 changed files with 5 additions and 1 deletions
|
@ -63,6 +63,10 @@ export default class ContentInputComponent {
|
||||||
fromInput(e) {
|
fromInput(e) {
|
||||||
return e.target instanceof HTMLInputElement ||
|
return e.target instanceof HTMLInputElement ||
|
||||||
e.target instanceof HTMLTextAreaElement ||
|
e.target instanceof HTMLTextAreaElement ||
|
||||||
e.target instanceof HTMLSelectElement;
|
e.target instanceof HTMLSelectElement ||
|
||||||
|
e.target instanceof HTMLElement &&
|
||||||
|
e.target.hasAttribute('contenteditable') && (
|
||||||
|
e.target.getAttribute('contenteditable').toLowerCase() === 'true' ||
|
||||||
|
e.target.getAttribute('contenteditable').toLowerCase() === '');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue