Dependent Select going from 2 to 1 option
Closed this issue · 1 comments
rctneil commented
Describe the bug
Using a slight tweak to the example of dependent Selects, I find that sometimes values do not save.
Steps to Reproduce
Repro repository: https://github.com/rctneil/avorepro
- Edit an existing "Companyable" record that has both a "Model" and a "Submodel"
- Change "Submodel" to not have a value. (eg, only choose a "Model")
- Save record
Expected behavior & Actual behavior
Companyable should have a "Company", a "Model", and no "Submodel", I find that in reality, none of those changes get saved and they stay as they were pre-editing.
Models and resource files
System configuration
License type:
- Community
- Pro
- Advanced
Are you using Avo monkey patches, overriding views or view components?
- Yes. If so, please post code samples. - Added head view to include custom JS
- No
Screenshots or screen recordings
Additional context
Impact
- High impact (It makes my app un-usable.)
- Medium impact (I'm annoyed, but I'll live.)
- Low impact (It's really a tiny thing that I could live with.)
Urgency
- High urgency (I can't continue development without it.)
- Medium urgency (I found a workaround, but I'd love to have it fixed.)
- Low urgency (It can wait. I just wanted you to know about it.)
Paul-Bob commented
Issue on the custom stimulus logic, closing as completed.