Hi Isomorphic,
We are using a custom component acting as a TypeAhead (code similar to http://forums.smartclient.com/forum/...lete-component).
We have been using this code and component without any issues till recently (on SmartGwt 4.1 build - v9.1p_2014-06-22/Enterprise Deployment 2014-06-22)
However, when evaluating version 6.1 (Isomorphic SmartClient/SmartGWT Framework (SNAPSHOT_v11.1d_2016-09-06/EVAL Deployment 2016-09-06)), we noticed some issues with it.
In the TypeAhead class, my code for ClickHandler looks like:
The expectation is that when the user clicks on the component, a ListGrid (contained in a Window) pops open and let's user select anything if need be, however, the user can still continue typing without the focus being lost from the TextItem!
However, with the upgrade, after the click event, the focus shifts to the window, thus, if the user needs to type, he/she has to expend an extra click!
Unfortunately, the same showClickMask code is being used in multiple places in our code, and also on addChangedHandler event, thus focus being lost on every character typing as well!
Please let me know if you need any more information in this regard.
Thanks!
We are using a custom component acting as a TypeAhead (code similar to http://forums.smartclient.com/forum/...lete-component).
We have been using this code and component without any issues till recently (on SmartGwt 4.1 build - v9.1p_2014-06-22/Enterprise Deployment 2014-06-22)
However, when evaluating version 6.1 (Isomorphic SmartClient/SmartGWT Framework (SNAPSHOT_v11.1d_2016-09-06/EVAL Deployment 2016-09-06)), we noticed some issues with it.
In the TypeAhead class, my code for ClickHandler looks like:
Code:
---- private Window listWindow; private ListGrid listGrid; ---- listWindow.addItem(listGrid); ---- addClickHandler(new ClickHandler() { @Override public void onClick(com.smartgwt.client.widgets.form.fields.events.ClickEvent event) { GenericDimension dimensionBean = dimensionManager.getDimensionBean(dimension); if (dimensionBean != null && dimensionBean.isTypeAheadOn()) { String searchText = getValueToSearch(); if (searchText == null) { setValue(StringSharedDefinitions.EMPTY); } setupListGridOnEvent(createCriteria(searchText)); if (dimensionManager.getDimensionBean(dimension).isTypeAheadOn()) { listWindow.show(); listWindow.moveTo(getPageLeft(), getPageTop() + getHeight()); [B]listWindow.showClickMask(new DismissClickHandler(), ClickMaskMode.HARD, new Canvas[]{listWindow});[/B] } focusInItem(); } } });
However, with the upgrade, after the click event, the focus shifts to the window, thus, if the user needs to type, he/she has to expend an extra click!
Unfortunately, the same showClickMask code is being used in multiple places in our code, and also on addChangedHandler event, thus focus being lost on every character typing as well!
Please let me know if you need any more information in this regard.
Thanks!
Comment