Modify

Ticket #449 (closed task: fixed)

Opened 15 months ago

Last modified 14 months ago

Delegate function is not executed on non-active cases in case-control

Reported by: idbr Owned by: mpo
Priority: major Milestone:
Component: modules/kauri-forms Version:
Keywords: delegate case Cc:

Description

Use case: we're using the delegate method to inform a TinyMCE-editor wrapped in a kauri control about dom moves, so it is initialized correctly in a dialog box.
As an extra, the aforementioned control is a case member of a case-control. When this case member isn't the default one, the editor is not reset, because of the delegate function not being triggered.

Test attached.

Attachments

test-delegate-case.js (1.6 KB) - added by idbr 15 months ago.

Change History

Changed 15 months ago by idbr

comment:1 Changed 14 months ago by mpo

  • Status changed from new to closed
  • Resolution set to fixed

In [1873]:

fixes #449. Thanx to Ives for spotting and the elegant testcase.
By introducing a third argument (boolean) to eachChild() method we can specify looping needs to pass also in-active children. This is needed for the special behavior of the case control (who has only one of its value-control children active at any given time)

View

Add a comment

Modify Ticket

Action
as closed
The resolution will be deleted. Next status will be 'reopened'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.