Page 1 of 1

Uncaught typeError: on selection

PostPosted: 24 Sep 2017 06:03
by Joelzim
iw14.1.6 / cg 4.0.1.72

I have another issue when I add a tiwcgdropdown box to a frame that is created on a page.

When I try to load the page I get the following error.

The error is

> Line 328 -> Uncaught TypeError: Cannot read property 'selection' of undefined ( http://127.0.0.1:8888/BTMJh9u38e60qLPBLJ0-Ga/$/ )

It is erroring in this function on the selection.on('keypress"

if (CGIsRTL($("#CBTEMPLATEPROCESSFMGETTEMPLATEDLG_JQ"))){ $("#CBTEMPLATEPROCESSFMGETTEMPLATEDLG_JQ").data("select2").container.addClass("select2-container-rtl"); }$("#CBTEMPLATEPROCESSFMGETTEMPLATEDLG_JQ").data("select2").selection.on("keypress", function(e){
tryFocusSearchInput($("#CBTEMPLATEPROCESSFMGETTEMPLATEDLG_JQ"),e);

Any ideas?

Re: Uncaught typeError: on selection

PostPosted: 26 Sep 2017 09:20
by Alexander Bulei
Hi Joelzim,

Can you submit the simple testcase? TIA

Best Regards.

Re: Uncaught typeError: on selection

PostPosted: 07 Oct 2017 16:39
by Joelzim
Thanks. We rewrote the form and everything seems to be working now.