We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Very good and nice library :) I find a small bug. Check the below code. Expected: when user press button alert should appear Actual: nothing happens
import { observable, h } from "sinuous"; import { template, t, o } from 'sinuous/template'; const ButtonTemplate = template( () => h('div', h('button', {onclick: o('buttonClick')}, 'Click me') ) ); let buttonClick = observable(() => { alert('first click'); buttonClick( () => alert('another handler!')); }) let app = ButtonTemplate({ buttonClick: buttonClick }) document.body.append( app );
Same behavior with t instead o
t
o
This happens because api.property does't call event handler and relevant action is not recorded in template.js
api.property
template.js
I am not sure how to fix this to support observables
The text was updated successfully, but these errors were encountered:
bb85b70
Thanks for the bug report, this is fixed in 0.27.8 🎉 https://codesandbox.io/s/hungry-cloud-3wuc0?file=/src/index.js
Sorry, something went wrong.
No branches or pull requests
Very good and nice library :)
I find a small bug. Check the below code.
Expected: when user press button alert should appear
Actual: nothing happens
Same behavior with
t
insteado
This happens because
api.property
does't call event handler and relevant action is not recorded intemplate.js
I am not sure how to fix this to support observables
The text was updated successfully, but these errors were encountered: