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
custom data html attributes #42
Comments
Hi @tsur, Non-standard HTML attributes should be added to an var plastiq = require("plastiq");
var h = plastiq.html;
function render(model) {
return h(".editable", { attributes: { contentEditable: true } }, "Edit me");
}
plastiq.append(document.body, render, {}); ...however, beware that setting contenteditable to true may not have the effect you're looking for! That is, I don't think plastiq hooks into any contenteditable events to support any kind of updating of the model. |
Hi @tsur, For these you want to use @joshski turns out virtual-dom uses JavaScript names for things like |
Thanks!! It works. |
fixed in 96f9491, and released in v1.17.0 |
It worked on the new release, great! thank you! |
Hi! and thank you all for working on this great framework.
I'm trying it out to set a custom data and contenteditable attribute but not sure if i'm doing something wrong. This is not working for me:
Anyhow, I'll check the source code to check what's going on.
Thank you very much!
The text was updated successfully, but these errors were encountered: