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
I have the following model: public record PackageRecord( String id, Long version, String name, Map<String, Integer> features ) { }
This is how I render the input fields for features:
This is how it looks like on the browser:
The problem is: when I change the value of the input, I am not able to enable the submit button. Am I doing this correctly? What is the proper way to render text fields for Map?
Expected-behavior
No response
Reproduction
System Info
OS: Mac OS Sonoma 14.6.1
Hilla: 24.4.6
Browser: Firefox 129.0.2 (64bit)
The text was updated successfully, but these errors were encountered:
From the looks of it, seems that the issue is that any changes from the user aren't updating the form binder. The item value is mutated, but this change is not being picked up.
Please try using field with the form binder API to get proper two-way bindings.
Describe the bug
I have the following model:
public record PackageRecord( String id, Long version, String name, Map<String, Integer> features ) { }
This is how I render the input fields for
features
:This is how it looks like on the browser:
The problem is: when I change the value of the input, I am not able to enable the submit button. Am I doing this correctly? What is the proper way to render text fields for Map?
Expected-behavior
No response
Reproduction
System Info
OS: Mac OS Sonoma 14.6.1
Hilla: 24.4.6
Browser: Firefox 129.0.2 (64bit)
The text was updated successfully, but these errors were encountered: