Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Select dropdown entries showing below field when max_items is 1 #10474

Closed
mikemartin opened this issue Jul 18, 2024 · 3 comments · Fixed by #10477
Closed

Select dropdown entries showing below field when max_items is 1 #10474

mikemartin opened this issue Jul 18, 2024 · 3 comments · Fixed by #10477

Comments

@mikemartin
Copy link

Bug description

Select dropdowns are showing the entries below the field even when max_items are set to 1.

Screenshot 2024-07-18 at 3 27 19 PM

How to reproduce

Add Select Dropdown fields to blueprint:

        fields:
          -
            handle: select_dropdown_entries
            field:
              mode: select
              type: entries
              display: 'Select Dropdown Entries'
          -
            handle: select_dropdown_entry
            field:
              max_items: 1
              mode: select
              type: entries
              display: 'Select Dropdown Entry (Max 1)'

Logs

No response

Environment

Environment
Application Name: Orb
Laravel Version: 11.16.0
PHP Version: 8.2.19
Composer Version: 2.7.6
Environment: local
Debug Mode: ENABLED
URL: orb.test
Maintenance Mode: OFF
Timezone: UTC
Locale: en

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

Drivers
Broadcasting: log
Cache: database
Database: mysql
Logs: stack / single
Mail: smtp
Queue: database
Session: file

Livewire
Livewire: v3.5.4

Spatie Permissions
Features Enabled: Default
Version: 6.9.0

Statamic
Addons: 5
Sites: 1
Stache Watcher: Enabled
Static Caching: Disabled
Version: 5.16.0 PRO

Statamic Addons
addonfoundry/flexible-forms: 1.1.4
doefom/currency-fieldtype: 1.4.0
marcorieser/tailwind-merge-statamic: 1.1.0
statamic-rad-pack/runway: 7.6.0
stillat/antlers-components: 2.2.0

Installation

Fresh statamic/statamic site via CLI

Additional details

No response

@mikemartin
Copy link
Author

Hey @jasonvarga
This is still showing for me on 5.0.17.

Screenshot 2024-07-23 at 9 19 08 PM

Fieldset:

-
            handle: entries_field
            field:
              max_items: 1
              collections:
                - articles
              type: entries
              display: 'Entries Field'
              mode: select

Here are my support details:

Environment
Application Name: Orb
Laravel Version: 11.16.0
PHP Version: 8.2.19
Composer Version: 2.7.6
Environment: local
Debug Mode: ENABLED
URL: orb.test
Maintenance Mode: OFF
Timezone: UTC
Locale: en

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

Drivers
Broadcasting: log
Cache: database
Database: mysql
Logs: stack / single
Mail: smtp
Queue: database
Session: file

Livewire
Livewire: v3.5.4

Spatie Permissions
Features Enabled: Default
Version: 6.9.0

Statamic
Addons: 6
Sites: 1
Stache Watcher: Enabled
Static Caching: Disabled
Version: 5.17.0 PRO

Statamic Addons
addonfoundry/flexible-forms: 1.1.5
doefom/currency-fieldtype: 1.4.0
marcorieser/tailwind-merge-statamic: 1.1.0
mitydigital/statamic-stripe-checkout-fieldtype: 2.0.0
statamic-rad-pack/runway: 7.6.0
stillat/antlers-components: 2.2.0

@jasonvarga
Copy link
Member

Hard refresh? It should definitely be done.

@mikemartin
Copy link
Author

Yep, I was missing the Statamic install command in my composer.json. 🤦‍♂️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants