laravel / nova-issues

556 stars 34 forks source link

Multi Select Field with resolve using not selecting integers and strings #5898

Closed electrictomcat closed 1 year ago

electrictomcat commented 1 year ago

Description:

When a multi select field has a mixture of integer and float values and you try and preselect both only the float values get selected.

Detailed steps to reproduce the issue on a fresh Nova installation:

When a multiselect has the values: 1 1.5 2 2.5

And you try to use resolveUsing to preselect 1.5 & 2, it will only select 1.5 and then mistakenly delete the data once the form is submitted.

crynobone commented 1 year ago

Duplicate of #5696