Skip to content

Select field with no options but "allow additions" is on, does not work as expected #13900

@dadaxr

Description

@dadaxr

Bug description

in 5x, I used to have a "css class" select field inside a bard set.
This select field has no options predefined, but the "allow additions" is set to true. :

Image Image Image

=> when clicking on the input, it loses focus, and there is no way to add any value inside.

If I provide one options in the blueprint, it works as expected... but I dont want any options by default.

Image Image Image Image Image

In 5x, it was working as expected, but in 6.2.5 it's not.

How to reproduce

Just add a select field in any bard set with no default option, and the "allow additions" set to true.

Logs

Environment

Environment
Laravel Version: 12.51.0
PHP Version: 8.4.13
Composer Version: 2.8.12
Environment: local
Debug Mode: ENABLED
Maintenance Mode: OFF
Timezone: UTC
Locale: fr

Cache
Config: NOT CACHED
Events: NOT CACHED
Routes: NOT CACHED
Views: CACHED

Drivers
Broadcasting: log
Cache: file
Database: mariadb
Logs: stack / daily
Mail: log
Queue: sync
Session: file

Storage
public/storage: NOT LINKED

Statamic
Addons: 3
Sites: 1
Stache Watcher: Enabled (auto)
Static Caching: Disabled
Version: 6.2.5 PRO

Installation

Fresh statamic/statamic site via CLI

Additional details

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions