View Full Version : [FIXED] emptyText breaks the new Ext.form.field.Tag component

10 May 2014, 1:29 AM
See fiddle: https://fiddle.sencha.com/#fiddle/5nq When using the emptyText option:

The control won't take the focus
The keyboard won't be usable until one option is selected with the mouse
The empty text itself is misaligned

13 May 2014, 4:53 AM
Thanks for the report! I have opened a bug in our bug tracker.

3 Jul 2014, 11:23 PM
It's worked for me:

Ext.override(Ext.form.field.Tag, {
onLoad: function() {
var me = this,
valueField = me.valueField,
valueStore = me.valueStore,
changed = false;

if (valueStore) {
if (!Ext.isEmpty(me.value) && (valueStore.getCount() == 0)) {
me.setValue(me.value, false, true);

valueStore.each(function(rec) {
var r = me.findRecord(valueField, rec.get(valueField)),
i = r ? valueStore.indexOf(rec) : -1;
if (i >= 0) {
valueStore.insert(i, r);
changed = true;
if (changed) {
valueStore.fireEvent('datachanged', valueStore);
//here default value is "", but in combo (parent) default - null and comparison is false
me.value = null;


Sorry for my English ))

28 Aug 2014, 1:08 AM
For fix style emptyText see: https://fiddle.sencha.com/#fiddle/9f4

17 Mar 2015, 2:03 AM
Hi, Any plans to fix this soon? The tag selector component is great but it is pretty broken when using "emptyText" option.Regards

19 Mar 2015, 12:41 AM
Please fix this ASAP. Without this the Tag field is useless. At least give an official workaround.

23 Mar 2015, 5:48 AM
Is there any workaround for this?
Or a nightly Build that fixes it? Or preferrably a few of the other 2989 Bugs with the freaking Tagfield?!

22 Apr 2015, 9:42 AM
Meanwhile almost a year and no fix?

18 May 2015, 11:24 AM
this is an ongoing problem for us too

5 Jun 2015, 2:55 AM
Sencha's attitude sucks. Probably, it's time to switch to another framework.

5 Jun 2015, 3:00 AM
More than a year to fix it... Or maybe two years needed? I am afraid to think about Ext JS 6. Their new features are always sounding nice in their marketing materials, but in fact full of bugs that are not even fixed in a reasonable time range.

5 Jun 2015, 3:05 AM
My thoughts exactly. I think the "public" is smart and Sencha will learn it the hard way. Ignoring customers has never paid off for anybody.

17 Oct 2016, 2:59 PM
Not to pile on to the negative comments, but this doesn't seem to be fixed in as noted in the banner at the top.

18 Oct 2016, 12:44 PM
It does appear to be fixed in 6.2.0, but not 6.0.x. I don't know which bug # to look for in the release notes. The one listed above seems to be referencing a different issue than the one described here.

Gary Schlosberg
20 Oct 2016, 3:17 PM
To which of the three reported issues are you referring? Besides the linked ticket ID (EXTJS-13378), I'm seeing two other related tickets:
EXTJS-19156 - Tagfield: Clicking emptyEl el when emptyText is set should show and focus the inputEl
EXTJS-19175 - Cannot tab into tagfield

21 Oct 2016, 6:17 AM
Looks like EXTJS-19156 is the one I thought was being referenced in this thread. If not, no worries, but it does seem to be fixed in 6.2

25 Oct 2016, 11:41 PM
See all my fixes (js+css) for tagfield here: https://fiddle.sencha.com/#fiddle/9f4
Fix for version 5.*