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

[question] Is there a way to keep the selected label as the Dropdown's label (until another one is clicked)? #78

Open
1 task done
danielbelfort opened this issue Nov 11, 2022 · 2 comments

Comments

@danielbelfort
Copy link

danielbelfort commented Nov 11, 2022

Is there an existing issue for this?

  • I have searched the existing issues

Package Version

1.0.0

Current Behavior

Dropdown always keeps its "label" prop displayed, despite what is pressed on within the Dropdown.

Expected Behavior

Can the Dropdown display the selected "items -> label" instead?

Steps To Reproduce

No response

Anything else?

This is my custom Dropdown, for reference:

<Dropdown
      style = {{ boxShadow: "0 2px 8px rgb(0 0 0 / 30%)", borderRadius: "10px" }}
      inner
      shortThrow
      chevron = {false}
      label= <img src="./logo.png" />
      items= {[   
        { label: <Link href="./">⚡</Link>, color: 'text' },
        { label: <Link href="./active">Active</Link>, color: 'text' },
        { label: <Link href="./my-history">My History</Link>, color: 'text' },
        { label: <Link href="./feed">Feed</Link>, color: 'green' },
        { label: <Link href="https://danielbelfort.notion.site/Just-Commit-9213dcd452184278a4f628b0e3f48e78"
                       target="_blank" rel="noopener noreferrer">
                       About</Link>, color: 'textSecondary' },        
      ]}
/>
@danielbelfort
Copy link
Author

also, adding "target="_blank" rel="noopener noreferrer" in the last label does not open the link in another tab.

is there a way to fix this? thanks!

@danielbelfort
Copy link
Author

for more: justcommit.app

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