PolymerElements / paper-dialog

A Material Design dialog
https://www.webcomponents.org/element/PolymerElements/paper-dialog
63 stars 41 forks source link

paper dialog doesn't support standard on-click event handlers #179

Open bsutton opened 5 years ago

bsutton commented 5 years ago

Description

paper-dialog doesn't support standard event handlers.

The vaadin documentation

https://vaadin.com/docs/v10/flow/polymer-templates/tutorial-template-event-handlers.html

states that WebComponents support adding event handlers of the form:

 <button on-click="handleClick">Click me</button>

Expected outcome

paper-dialog support webcomponent standards such as adding click events.

Actual outcome

no event is fired.

Steps to reproduce

Add an event handler as per the vaadin documenation on web components

Click the button No event is fired.