fluentui icon indicating copy to clipboard operation
fluentui copied to clipboard

ComboBox sends bad onChanged after backspacing all characters

Open IanVS opened this issue 9 years ago • 8 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? No, probably not (sorry)

Requested priority: Normal

Products/sites affected: Nutshell CRM Outlook add-on

Describe the issue:

I am using an uncontrolled ComboBox on a form, allowFreeform set to true. I have found that when I backspace out all of the characters one at a time and then press enter, the value argument that is provided to onChanged is the last letter that was backspaced (the first letter of the original contents). See Provided codepen for a demonstration.

Actual behavior:

onChanged is called with a single character in the value argument.

Expected behavior:

onChanged is called with an empty string.

If applicable, please provide a codepen repro:

https://codepen.io/IanVS/pen/wryoby

IanVS avatar Oct 06 '17 15:10 IanVS

@jspurlin

dzearing avatar Oct 12 '17 06:10 dzearing

Any update on this issues ... Any work arounds?

fidabhittani avatar Nov 28 '17 08:11 fidabhittani

@jspurlin Is this still on your radar?

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]

Also running into this issue, has anyone found a workaround for clearing combobox input?

sebraddo avatar Jul 06 '18 00:07 sebraddo

Same here. Please increase priority some of my core features relies on this component

aslanovsergey avatar Jul 09 '18 11:07 aslanovsergey

I thought I could do a quick fix on this, but the fix is VERY involved based on how this was actually coded.

kenotron avatar Aug 28 '18 20:08 kenotron

FYI, I've got a local fix for this. Need to finish testing and then will have a PR sent out

jspurlin avatar Aug 29 '18 16:08 jspurlin