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

Limit option value in select and relations fields is limited by Vue Multiselect #3503

Open
nestordedios opened this issue Nov 10, 2023 · 1 comment

Comments

@nestordedios
Copy link
Collaborator

Having the option limit set to a value greater than 500 will not display more than 500 items on a select or relationship field.

Apparently there are some limitations in the Vue Multiselect library as i could find in this issue shentao/vue-multiselect#123.

It looks like when having long lists (+500 items) the functionality needs to be adjusted for being able to retrieve all values. Making use of their asynchronous select https://vue-multiselect.js.org/#sub-asynchronous-select

Details

Question Answer
Relevant Bolt Version 5.2
Install type Composer install
PHP version 8.2
Web server Symfony local server

Reproduction

Add the limit option limit: 600 to a relationship field with more than 500 records. This setup should display 600 records or less in the relationship select field, but only 500 are shown.

Expected result

600 records are displayed in the relationship select field

Actual result

A maximum of 500 records are displayed in the relationship select field

@nestordedios
Copy link
Collaborator Author

This might not be a bug. I have managed to add 5000+ records into a relationship field locally and having them display in the select field.

I have applied a small fix here #3506 to properly override the limit option for the relationship select field.

The issue I described happens on a heavily cached production site and that might also be related.

When the PR is merged and a new release is tagged I'll update the production project to verify if that fixed it.

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

No branches or pull requests

1 participant