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

iconPicker no "onClickIconPicker" property in ref object available to use #1618

Open
livain18 opened this issue Aug 9, 2023 · 1 comment

Comments

@livain18
Copy link

livain18 commented Aug 9, 2023

Category

[ ] Enhancement

[ x ] Bug

[ ] Question

Version

Please specify what version of the library you are using: [ 3.15.0 ]

Expected / Desired Behavior / Question

It is not currently possible to use an "onClickIconPicker" property on IconPicker component neither is it available as a property used as a ref from IconPicker. In my situation I need a sortlike method to be able to open the iconPicker with the "Enter" button and it is only possible to open it with "Space" button atm. i need something like

iconPickerElement?.addEventListener("keydown", (ev) => { if ((ev as KeyboardEvent).code === "Enter") { iconPickerRef.current.onClickIconPicker(); } });)

--> see iconPickerRef.current.onClickIconPicker();

Observed Behavior

No onClickIconPicker property is present in the ref object from the iconPicker. I need to be able to use onClickIconPicker outside of the component.

Thanks!

@ghost
Copy link

ghost commented Aug 9, 2023

Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.

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

No branches or pull requests

2 participants