2
votes

How do I get an extJS combo field to clear its 'value' when the display text is blank or doesn't match a list value, i.e. custom text not in the data store? I'm sure there must be something I'm missing, because such a simple feature can't make an otherwise impressive combo useless.

3
We see this same issue in ExtJs 6.5. Hooray for progress! - Mike Samaras

3 Answers

0
votes

You can force to the list using forceSelection, also you might need to put an event on to capture the text value change and invalidate it if it's not in the store, perhaps the valid event I'm not sure.

0
votes

Just an idea. In a 'keydown' event do 'validate()' on each keystroke. Then use 'valid' and 'invalid' events to perform an appropriate action (f.e. setValue('')).