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

maxTagPlaceholder renders inside a predefined tag #1043

Open
orelHAnyvision opened this issue May 6, 2024 · 0 comments
Open

maxTagPlaceholder renders inside a predefined tag #1043

orelHAnyvision opened this issue May 6, 2024 · 0 comments

Comments

@orelHAnyvision
Copy link

I would like to use maxTagCount and maxTagPlaceholder props to render selected values and if more then one then render a custom element

<Select
options={[
      { value: 'option1', label: <span>option1</span> },
      { value: 'option2', label: <span>option2</span> },
      { value: 'option3', label: <span>option3</span> },
      { value: 'option4', label: <span>option4</span> }
    ]}
mode='multiple'
maxTagCount={1}
maxTagPlaceholder={() => <div>something</div>}

I would like the <div>something</div> to be rendered without any tag which wrap it, whats happening it that <div>something</div> is rendered inside a tag

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