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

onIconTap should fire even if readonly is true #9

Closed
Relax594 opened this issue Jul 19, 2020 · 2 comments
Closed

onIconTap should fire even if readonly is true #9

Relax594 opened this issue Jul 19, 2020 · 2 comments

Comments

@Relax594
Copy link
Contributor

Relax594 commented Jul 19, 2020

I know it's by design, but why? I don't see any reason for it. Even if the Rating is readonly, i want to know where a user tapped (to toggle tooltips in my case).

If you want to keep it this way, at least note it in the docs.

Regards

@ui-ninja
Copy link
Owner

ui-ninja commented Jul 20, 2020

I don't think it will make sense to trigger onIconTap if readonly is passed. For your usecase, simply don't make it readonly..

If you want to keep it this way, at least note it in the docs.

I mentioned it under API table's row readonly that onPress wont be fired.. But I forgot to update it once I changed onPress to onIconTap. Will update soon in new minor version.
Anyway i have plans to make few changes in IconBar.

@Relax594
Copy link
Contributor Author

Relax594 commented Jul 21, 2020

For your usecase, simply don't make it readonly..

haha honestly, i never thought about this 💯

Thanks a lot!

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

2 participants