Skip to content

Commit

Permalink
make check for tooltip tricks
Browse files Browse the repository at this point in the history
  • Loading branch information
GeoSot committed Apr 14, 2022
1 parent ee5241b commit 5beca29
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion js/src/dom/event-handler.js
Expand Up @@ -128,7 +128,9 @@ function findHandler(events, callable, delegationSelector = null) {

function normalizeParameters(originalTypeEvent, handler, delegationFunction) {
const isDelegated = typeof handler === 'string'
const originalHandler = isDelegated ? delegationFunction : handler
const originalHandler = isDelegated ?
delegationFunction :
(handler || delegationFunction) // todo: tooltip passes `false` instead of selector, so we need to check
let typeEvent = getTypeEvent(originalTypeEvent)

if (!nativeEvents.has(typeEvent)) {
Expand Down

0 comments on commit 5beca29

Please sign in to comment.