fluentui icon indicating copy to clipboard operation
fluentui copied to clipboard

[Combobox] - Add a new prop for onCombobox Click

Open tabansal opened this issue 6 years ago • 6 comments

Describe the feature that you would like added

Currently, we have onItemClick as a prop, we need onComboboxClick prop as well, which should be called as soon as user click insides the comboBox input.

What component or utility would this be added to

Combobox

tabansal avatar Mar 30 '20 19:03 tabansal

@tabansal I believe you're looking for onFocus look at the example code on the example page and you'll see how onFocus can be used to dictate what happens when the ComboBox is clicked. https://developer.microsoft.com/en-us/fluentui#/controls/web/combobox

aneeshack4 avatar Mar 30 '20 21:03 aneeshack4

@aneeshack4 there's no prop onFocus in documentation. Is it newly added or documentation is out of date?

tabansal avatar Mar 30 '20 21:03 tabansal

@tabansal You can example usage of it in the link as I explained above. image

aneeshack4 avatar Mar 30 '20 23:03 aneeshack4

@aneeshack4 onFocus is also triggered for keyboard focus or if user clicks on caret icon inside textbox. Another thing is if focus is already inside textbox, it doesn't get triggered. I'm looking for a callback for when user clicks inside textbox.

tabansal avatar Mar 31 '20 18:03 tabansal

@tabansal Ok I'm going to add this to the backlog for review since it's looking like a feature request.

aneeshack4 avatar Apr 01 '20 20:04 aneeshack4

Because this issue has not had activity for over 150 days, we're automatically closing it for house-keeping purposes.

Still require assistance? Please, create a new issue with up-to date details.

msft-fluent-ui-bot avatar Apr 26 '21 14:04 msft-fluent-ui-bot