0

Javascript TypeError in zul.sel.wpd: _changeSelect [closed]

asked 2023-11-30 00:03:19 +0800

zkulm gravatar image zkulm
100 2

updated 2023-12-01 15:19:55 +0800

hawk gravatar image hawk
3205 1 5
http://hawkphoenix.blogsp... ZK Team

Helloy everoyne,

we recently upgraded the ZK version in our software from 9.5.0.3 to 9.6.0.2.

AFter this upgrade we encountered the following problem with in the java script zul.sel.wpd (_changeSelect):

setAttrs a.isSelected is not a function (TypeError)

image description

It seems to be triggered by a an update on listbox-elements under specific conditions (which we are still not sure about). We did not encounter this issue in 9.5.0.3.

Thanks in advance for your help.

Update: We were able to narrow it down a bit more: The problem occurs for listboxes with listheaders:

<listbox mold="select" rows="1">
  <listhead id="UI_LISTHEAD_TEST">
      <listheader id="UI_LISTHEADER_TEST"></listheader>
  </listhead>
</listbox>

The issue is the following: The method "setChgSel" iterates over all listbox-children and calls _changeSelect. But a listhead has no function isSelectable.

image description

delete flag offensive retag edit

The question has been closed for the following reason "the question is answered, right answer was accepted" by zkulm
close date 2023-12-01 16:53:14

1 Answer

Sort by ยป oldest newest most voted
1

answered 2023-12-01 15:21:21 +0800

hawk gravatar image hawk
3205 1 5
http://hawkphoenix.blogsp... ZK Team

updated 2023-12-01 15:25:26 +0800

Under mold="select", it doesn't support <listhead>, only support <listitem>. In the implementation of the previous version, it just works coincidently.

link publish delete flag offensive edit

Comments

Thanks a lot, that fixed the issue!

zkulm ( 2023-12-01 16:48:12 +0800 )edit

Question tools

Follow

RSS

Stats

Asked: 2023-11-30 00:03:19 +0800

Seen: 9 times

Last updated: Dec 01 '23

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