Dolibarr / dolibarr

Dolibarr ERP CRM is a modern software package to manage your company or foundation's activity (contacts, suppliers, invoices, orders, stocks, agenda, accounting, ...). it's an open source Web application (written in PHP) designed for businesses of any sizes, foundations and freelancers.
https://www.dolibarr.org
GNU General Public License v3.0
5.12k stars 2.69k forks source link

Major issue in select2 #30097

Open homer8173 opened 1 month ago

homer8173 commented 1 month ago

Bug

Select2 doesn't support backward related issue : https://github.com/select2/select2/issues/4549

Dolibarr Version

ANY

Environment PHP

ANY

Environment Database

ANY

Steps to reproduce the behavior and expected behavior

Fill any select2, submit the form, return backward and all the select2 are in an indeterminate state : the field seems empty the dropdown show a selected value But the real select is not selected -> see joined picture

To come back to selected state, you have to unselect your selected value and reselect it.

Attached files

image

homer8173 commented 1 month ago

there s a fix here : https://github.com/select2/select2/issues/6154#issuecomment-1492740571