ranile / material-yew

Yew wrapper for Material Web Components
https://material-yew.rm.rs
Apache License 2.0
230 stars 35 forks source link

Missing click handlers #10

Open adwhit opened 3 years ago

adwhit commented 3 years ago

Hi, thanks for the interesting library.

Not sure if I'm misunderstanding this library, but I tried it out with the MatButton component, but couldn't figure out how to add a click handler to the button. It looks like generic event handling isn't implemented?

ranile commented 3 years ago

This is an issue with Yew which prevents us from having generic event handling. See https://github.com/yewstack/yew/issues/1533. Also see #9.

I'd wrap the components in a span to get around this limitation.