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

Wrong behavior combining Filter control and Sticky header extensions + data-sort-empty-last=true + data-sort-select-options=true #7625

Open
adriencoa opened this issue Nov 26, 2024 · 2 comments
Labels
Bug Issues which are marked as Bug

Comments

@adriencoa
Copy link

Bootstraptable version(s) affected

1.23.5

Description

Hi,
We observe an issue when using Filter control extension + Sticky header extension + data-sort-empty-last=true + data-sort-select-options=true.
When scrolling the table we see that the select inputs are not well initialized, displaying the first not null value instead of empty by default.
See example attached.

Example(s)

https://live.bootstrap-table.com/code/adriencoa/18404

Possible Solutions

My guess: when using the data-sort-empty-last=true, it does also on the select input options because of the data-sort-select-options=true other option.
But the select option sort should always keep the blank value as default.

Additional Context

No response

@adriencoa adriencoa added the Bug Issues which are marked as Bug label Nov 26, 2024
@adriencoa
Copy link
Author

@wenzhixin if you need more details or tests, tell me !
Thanks for your support and your great library !

@EgorTrutnev EgorTrutnev mentioned this issue Nov 28, 2024
10 tasks
@wenzhixin
Copy link
Owner

Currently, these two extensions are likely incompatible when used together.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Issues which are marked as Bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants