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

CustomDropdown does not have onclick get selected item #79

Closed
bikashD opened this issue Sep 7, 2018 · 1 comment
Closed

CustomDropdown does not have onclick get selected item #79

bikashD opened this issue Sep 7, 2018 · 1 comment

Comments

@bikashD
Copy link

@bikashD bikashD commented Sep 7, 2018

I don't see there is onClick/onChange event to get selectedItem, I have modified it. Can I make a pull request for it?

<CustomDropdown
     buttonText="Date Range"
     onClick={(selectedItem)=>{console.log(selectedItem)}}
     buttonColor="info" buttonColor="info"
     dropdownList={[
       'Today',
       'Yesterday'
     ]}
/>

Also, modified the CustomDropdown to achieve this.

@EINazare
Copy link
Collaborator

@EINazare EINazare commented Sep 10, 2018

Hello there @bikashD ,

Thank you for your interest in using our product and for telling us about this feature.
Can you open a PR on the free/demo product of this product?
https://github.com/creativetimofficial/material-dashboard-react
We would accept it in our next update.

Best,
Manu

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

Successfully merging a pull request may close this issue.

None yet
2 participants