Lazyloaded SearchableDropdownField does not function correctly when using in elemental. Selecting a value does not visually update the field, though when you save the value is saved. I tested using an autoscaffolded field, meaning I had over 100 DataObject which I create via requireDefaultFields(). When setting ->setIsClearable(true) on DBForeignKey.php, when I clicked the clear button I got console warnings (I had run yarn dev in admin)
Lazyloaded SearchableDropdownField does not function correctly when using in elemental. Selecting a value does not visually update the field, though when you save the value is saved. I tested using an autoscaffolded field, meaning I had over 100 DataObject which I create via requireDefaultFields(). When setting ->setIsClearable(true) on DBForeignKey.php, when I clicked the clear button I got console warnings (I had run yarn dev in admin)
Discovered when implementing https://github.com/silverstripe/silverstripe-framework/pull/11273
Note this isn't an issue when using a SearchableDropdownField in a regular form
Test setup:
You'll need dnadesign/silverstripe-elemental installed
MyBlock.php
MySubDataObject.php
New issues created
Shared CI run
PRs