Open sabat24 opened 2 months ago
This seems to be the same as: #1128
Do you think you could open a PR to fix this bug and merge correctly ?
This seems to be the same as: https://github.com/symfony/ux/issues/1128
Yes. It's a duplicate.
Do you think you could open a PR to fix this bug and merge correctly ?
Probably yes. However, I am struggling with a higher priority issue related to Autocomplete and LiveComponent, so I will start to work on this not earlier then 3 weeks.
Tested on 2.10.
When creating
FormType
:autocomplete_url
to some custom url.tom_select_options
Uncaught TypeError: this.getUrl is not a function
The error is caused because of that ux-autocomplete controller adds
virtual_scroll
as a plugin by default whenurl
option is set. However providingplugins
option directly overrides it. Knowing that fact I can set of course it manuallyIt would be nice if some required default options were merged instead of replacing them. Or at least there may be some information in doc what kind of options should be set to not override those created by ux-autocomplete controller.