-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hi, We recently updated the zk version to 9.0.0. By testing we have detected an error in one of our windows. By loading a window we are selecting items in the combos through this java code. The problem is that selecting it is leaving the combo panel open. This error happens only in Internet Explorer 11. In other browsers, the item is selected correctly without leaving the panel open.
can anyone help me with us? thanks
Hi there,
There are a number of ways to control a combobox (using direct control, listmodel, controller, selection control, etc)
Could you make a zkfiddle reproducing the issue? If that's not easy, maybe send the zul / java code relevant to test it?
Hi MDuchemin, when open the window I select item with this code. In IE11 select item but dont close the combo panel.
for (Comboitem item : combo.getItems()) { if (item.getValue().equals(value)) { combo.setSelectedItem(item); break; } }
Thanks
Hi, I am creating items and add to the combo.
for(...){ final Comboitem ci = new Comboitem(text); ci.setValue(value); ci.setParent(combo); }
Hi Ricardo
How do you create the items? Are you manually generating the comboitems, or are you using a model?
If you are using a model, the selection control belongs to the model object. In that case, you'd need to use a ListModelList as the model of the combobox, and control selection with listModelList.addToSelection, or .getSelection()
Hi Ricardo,
I've tried to run this fiddle in IE11: https://zkfiddle.org/sample/69f3oi/1-combo-select
but I'm not seeing the combo popup staying open on selection. Do you have a different use case? if so, can you update this fiddle to reproduce it? Or make one from a new fiddle?
The fiddle code is very similar to mine. It occurs to me that it could be because of the styles. We use a style created from silvertail, although we do not make any special treatment for ie11.
Hi Ricardo,
I've tested the fiddle with ZK 9.0.0 on silverail, but I can't reproduce the issue as described. (see gif below)
If you run this fiddle with 9.0.0 and silvertail theme, are you able to reproduce the issue? If yes, can you send a screenshot?
A good test would be temporarily replace your theme by the matching default (ex. silvertail) in your local app. If you can still reproduce the issue, then it's a solid indicator that the issue is not located at theme level.
Hi MDuchemin,
Asked: 2020-05-12 13:34:19 +0800
Seen: 23 times
Last updated: May 21 '20