Skip to content

Event handler conventions and prop clashes #19

@ChristophP

Description

@ChristophP
  1. Investigate how event handlers behave when passing event types that aren't lowercase..
    Right now we call event handlers like this:
    c.addEventListener('onClickButton', function(e) {
      console.log('Event `onClickButton` triggered', e)
    });

that's not very nice because usually there shouldn't be an on in the first param of addEventListener.
https://developer.mozilla.org/de/docs/Web/API/EventTarget/addEventListener

  1. We should check if props already exist when adding getters and setters, instead of overwriting them.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions