You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Problem
I am trying to write an input element with the webkitdirectory attribute.
It fails at
error[E0277]: the trait bound `bool: IntoPropValue<std::option::Option<AttrValue>>` is not satisfied
--> src/components/menubar.rs:17:30
|
17 | webkitdirectory={true}
| ^^^^ the trait `IntoPropValue<std::option::Option<AttrValue>>` is not implemented for `bool`
Steps To Reproduce
Steps to reproduce the behavior:
add an input element with the webkitdirectory attribute
Expected behavior
It to work, and allow me to select directories
Screenshots
If applicable, add screenshots to help explain your problem.
Environment:
Yew version: 0.19.3
Questionnaire
I'm interested in fixing this myself but don't know where to start
I would like to fix and I have a solution
I don't have time to fix this right now, but maybe later
Is there a shim I could do in the meantime to unblock myself?
The text was updated successfully, but these errors were encountered:
A proposal for a work-around: webkitdirectory={value.then_some("".into())} where value is a bool or webkitdirectory={Some("".into())} if value is true as in the example.
Problem
I am trying to write an input element with the webkitdirectory attribute.
It fails at
Steps To Reproduce
Steps to reproduce the behavior:
Expected behavior
It to work, and allow me to select directories
Screenshots
If applicable, add screenshots to help explain your problem.
Environment:
Questionnaire
Is there a shim I could do in the meantime to unblock myself?
The text was updated successfully, but these errors were encountered: