0

combobox double SelectEvent bug

asked 2021-01-12 18:10:45 +0800

AndreiArdei gravatar image AndreiArdei
31

updated 2021-01-12 22:07:14 +0800

Hello,

I came across a weird issue with comboboxes. I have a combobox component to which I add different comboitems. Usually the selection of a comboItem goes as follows:

OpenEvent -> SelectEvent -> OpenEvent (for closure) -> done.

Recently I found that if a comboItem contains \n or newlines, ZK sends two SelectEvents. The second selectEvent is sent when clicking outside the dropdown and returns a null value. So the new flow looks like:

OpenEvent (opens dropdown) -> SelectEvent (selects corect comboItem) -> OpenEvent (closes dropdown) -> SelectEvent (selects no comboItem thus null).

I am not sure if this is the correct behaviour and i think it might be a possible bug

delete flag offensive retag edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2021-01-13 16:25:38 +0800

MDuchemin gravatar image MDuchemin
1891 1 5
ZK Team

Hi There,

Which ZK version are you running? I tried making this fiddle to reproduce the case as described, but I can't get the same effect. https://zkfiddle.org/sample/2n8n2fn/13-Another-new-ZK-fiddle

Do you think you can test if it reproduce the issue on your side, or if it's missing anything to get the same effect? If you can reproduce, can you send a step-by-step of how to do it?

link publish delete flag offensive 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: 2021-01-12 18:10:45 +0800

Seen: 7 times

Last updated: Jan 13

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