TW Classes instead of inline; no pointer event "all"

The way I read https://developer.mozilla.org/de/docs/Web/CSS/pointer-events, `pointer-events: all` is a special SVG thing and what we want here, is what TW provides with `pointer-events-none` https://tailwindcss.com/docs/pointer-events so that event pass through.
This commit is contained in:
Tobias Jordans 2021-09-30 21:44:55 +02:00
parent 9889b0d464
commit 821c97662b

View file

@ -131,8 +131,7 @@ export default abstract class BaseUIElement {
// @ts-ignore
e.consumed = true;
}
el.style.pointerEvents = "all";
el.style.cursor = "pointer";
el.classList.add("pointer-events-none", "cursor-pointer");
}
if (this._onHover !== undefined) {