0

Problem selected item in combobox on ie11

asked 2020-05-12 13:34:19 +0800

RicardoRivas gravatar image RicardoRivas
31

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

delete flag offensive retag edit

8 Answers

Sort by ยป oldest newest most voted
0

answered 2020-05-12 15:00:57 +0800

MDuchemin gravatar image MDuchemin
2560 1 6
ZK Team

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?

link publish delete flag offensive edit
0

answered 2020-05-14 14:06:53 +0800

RicardoRivas gravatar image RicardoRivas
31

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

link publish delete flag offensive edit
0

answered 2020-05-14 20:43:09 +0800

RicardoRivas gravatar image RicardoRivas
31

Hi, I am creating items and add to the combo.

for(...){
  final Comboitem ci = new Comboitem(text);
  ci.setValue(value);
  ci.setParent(combo);
}
link publish delete flag offensive edit
0

answered 2020-05-14 19:26:22 +0800

MDuchemin gravatar image MDuchemin
2560 1 6
ZK Team

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()

link publish delete flag offensive edit
0

answered 2020-05-14 21:37:02 +0800

MDuchemin gravatar image MDuchemin
2560 1 6
ZK Team

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?

link publish delete flag offensive edit
0

answered 2020-05-15 14:01:01 +0800

RicardoRivas gravatar image RicardoRivas
31

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.

link publish delete flag offensive edit
0

answered 2020-05-18 15:40:16 +0800

MDuchemin gravatar image MDuchemin
2560 1 6
ZK Team

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) image description

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.

link publish delete flag offensive edit
0

answered 2020-05-21 14:16:29 +0800

RicardoRivas gravatar image RicardoRivas
31

Hi MDuchemin,

link publish delete flag offensive edit

Comments

something seems missing in your response :)

cor3000 ( 2020-05-21 18:19:05 +0800 )edit
Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow
1 follower

RSS

Stats

Asked: 2020-05-12 13:34:19 +0800

Seen: 23 times

Last updated: May 21 '20

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More