0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-24 23:48:13 -05:00

Fixed linting

This commit is contained in:
Kevin Ansfield 2018-08-08 17:02:15 +01:00
parent 758cf8c987
commit 9832414374

View file

@ -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();
} }