mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-24 23:48:13 -05:00
Fixed linting
This commit is contained in:
parent
758cf8c987
commit
9832414374
1 changed files with 0 additions and 1 deletions
|
@ -153,7 +153,6 @@ export default Component.extend({
|
||||||
let targetTagName = event.target.tagName;
|
let targetTagName = event.target.tagName;
|
||||||
let allowedTagNames = ['INPUT', 'TEXTAREA'];
|
let allowedTagNames = ['INPUT', 'TEXTAREA'];
|
||||||
let allowClickthrough = !!event.target.closest('[data-kg-allow-clickthrough]');
|
let allowClickthrough = !!event.target.closest('[data-kg-allow-clickthrough]');
|
||||||
console.log('allowClickthrough', allowClickthrough);
|
|
||||||
if (!allowedTagNames.includes(targetTagName) && !allowClickthrough) {
|
if (!allowedTagNames.includes(targetTagName) && !allowClickthrough) {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue