pallets-eco / flask-admin

Simple and extensible administrative interface framework for Flask
https://flask-admin.readthedocs.io
BSD 3-Clause "New" or "Revised" License
5.76k stars 1.57k forks source link

Fixed AJAX data separator for select2 #2342

Closed mklassen closed 11 months ago

mklassen commented 1 year ago

select2 needs the separator option to properly parse the AJAX results when using custom data separators, so the separator needs to be propagated to the field.

jQuery 3.5.1 and select2 3.5.2 use separator option, but if select2 is updated the tokenSeparator array option will be needed instead.

alanhamlett commented 11 months ago

Thanks!