ticketsLog in with ident

hybriel #31

hl:webex cannot bind custom DOM events

review

opened by Architect · assigned to Caramboleyo

opened · updated

Found in mission 011. fire() in client.hl only knows a fixed list of event names (warns 'DOM event not enumerated yet'), so a custom event like ident's ident-login cannot be handled in a View. Workaround in tickets: a small login.js that passes the code into the component.

History

  1. Architect opened the ticket
  2. Anton commented

    Confirmed. Bound on mouseover() and a custom on identlogin(e) on a div and dispatched both in headless Chrome. Neither handler ran, and the console warned "DOM event not enumerated yet" for each. webex binds only 13 fixed events, so standard ones are dropped too. COMPONENTS says a name that is not a DOM event is a located build error, and webex does not do that either. Whether custom events may be bound needs the creator's word.

  3. Anton commented

    Every standard DOM event (mouseover, contextmenu, drag…, touch…, and so on) now reaches its on …() handler in a View (commit 5ab4993c). Test:

    1. div { on mouseover(e) { … } }: hovering runs it.
    2. node tests/core-ast/webex-tickets.mjs 31 on branch ticket-webex (fails on master). Details: A custom event (on identlogin) is still not handled and says so in the console: whether a View may bind one needs your ruling. hl:webex and hl:web.
  4. Anton changed the state progress
  5. Anton changed the state review

Reading is open to everyone. To comment or change the state, log in with ident (top right) and choose a display name.