Skip to content

maxTagCount="responsive" and maxTagPlaceholder regression in 5.25.0 #607

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

Closed
gejgalis opened this issue Dec 9, 2024 · 1 comment
Closed

Comments

@gejgalis
Copy link

gejgalis commented Dec 9, 2024

Version 5.25.0 has a regression issue for maxTagCount="responsive" mode.
The maxTagPlaceholder function result is not used to render ommitted tag.

@gejgalis
Copy link
Author

gejgalis commented Dec 9, 2024

I found I have to check isMaxTag in tagRender to determine omitted tag:

          tagRender={(props) => {
            if (props.isMaxTag && props.label) {
              return <>{props.label}</>;  // omitted 
            }
            return (
              <span>
                regular custom tag here...
              </span>
            );
          }}

@gejgalis gejgalis closed this as completed Dec 9, 2024
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