Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot bind events to buttons? #19

Open
delbato opened this issue Feb 15, 2022 · 2 comments
Open

Cannot bind events to buttons? #19

delbato opened this issue Feb 15, 2022 · 2 comments

Comments

@delbato
Copy link

delbato commented Feb 15, 2022

As far as i could gather, there is no way to bind a callback directly to any component as none are defined in the respective *Props.
This especially makes elements like MatButton pretty useless - i had to wrap it in a div and listen to events in that div.
Am i misunderstanding something or is this actually a missing feature?

@ranile
Copy link
Owner

ranile commented Feb 15, 2022

It's a limitation of Yew right now. See yewstack/yew#1533

@mohs8421
Copy link

mohs8421 commented Jun 8, 2022

Am I missing some information, or is that statement limited @hamza1311 ? Because there are for example oninput events available for MatTextField, so maybe it does not allow to use any existing event right now, but it should be possible to provide an onclick event.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants