Setting optional props with base expr fails without Some(...)
#2034
Labels
A-yew-macro
Area: The yew-macro crate
bug
macro
Issues relating to our procedural or declarative macros
Problem
Adding the following test to
/yew-macro/tests/html_macro/component-pass.rs
fails tests. This is due to the current implementation of property setting with a base expression.This test passes if the property is wrapped in a
Some
, butSteps To Reproduce
Steps to reproduce the behavior:
Add the above snippet to line 213 of
component-pass.rs
Expected behavior
Test passes and optional string it set in prop
Screenshots
Environment:
master
Questionnaire
The text was updated successfully, but these errors were encountered: