Closed iSWORD closed 4 years ago
There seems to be an issue when showing the label for the option at index 0 when storing the selected value in an integer database field.
integer
Example:
public function fields(Request $request) { return [ Select2::make('Type')->options(['Foo', 'Bar', 'Milk']), // ]; }
Where type is defined as the following in the migration:
public function up() { Schema::create('peanuts', function (Blueprint $table) { $table->integer('type')->default(0); // }); }
When selecting item at index 0 "Foo" it fails to show its label on the show, index or edit views.
Thank you,
Hello, @iSWORD I'll check and fix this issue as soon as possible, thanks!
Fixed on Release v1.21
There seems to be an issue when showing the label for the option at index 0 when storing the selected value in an
integer
database field.Example:
Where type is defined as the following in the migration:
When selecting item at index 0 "Foo" it fails to show its label on the show, index or edit views.
Thank you,