fluentui icon indicating copy to clipboard operation
fluentui copied to clipboard

ComboBox newly created freeform item is cleared with escape key

Open IanVS opened this issue 9 years ago • 3 comments

Bug Report

  • Package version(s): 5.5.0

Priorities and help requested (not applicable if asking question):

Are you willing to submit a PR to fix? Perhaps, if pointed in the right direction.

Requested priority: Normal

Describe the issue:

I am having some difficulties with freeform-entered options in uncontrolled ComboBoxes. Specifically, after creating an option by typing it in and pressing enter, if I open the dropdown and press the escape key to close the dropdown/blur, the selection disappears. I've made a codepen to illustrate the issue.

Actual behavior:

Freeform-entered options can be cleared, leaving a blank field. onChanged does not fire, but the field remains blank.

Expected behavior:

Pressing escape would not clear out the selection, and would behave just as it does when choosing an option from the dropdown, opening the dropdown, and pressing escape.

If applicable, please provide a codepen repro:

https://codepen.io/IanVS/pen/YrexLg?editors=0011

IanVS avatar Oct 06 '17 19:10 IanVS

@jspurlin Is this one on your radar or should we close it?

michaelangotti avatar Apr 09 '18 18:04 michaelangotti

This issue has been automatically marked as stale because it has not activity for 30 days. It will be closed if no further activity occurs within 14 days of this comment. Thank you for your contributions to Fabric React! Why am I receiving this notification?

stale[bot] avatar Jun 08 '18 18:06 stale[bot]

With this same CodePen I'm also seeing this issue where showing the dropdown and just clicking elsewhere on the page adds a phantom option. There may be a race condition or improperly call callbacks calling this issue.

combobox3

JasonGore avatar Aug 14 '18 21:08 JasonGore