Closed carson-katri closed 5 months ago
Can you confirm if this is true with main
? I just tried to reproduce and cannot.
Also, FWIW the 2nd example should encode as:
<List selection="[\"1\",\"2\"]"></List>
Using main
of live_view_native
and liveview-client-swiftui
I still get:
<List selection="12">
</List>
This was a result of the consuming app having an overridden phoenix_live_view
dependency that didn't include the upstream changes necessary to enable our special attribute handling. Once the next version of phoenix_live_view
is cut we can remove the git refs and this will hopefully not be an issue again
When passing a
List
to an attribute, the values are not JSON encoded, but merged into a single string:This results in:
Expected:
When the list has values
This results in:
Expected: