Article Details
Id:17342
Product:finPOWER Connect
Type:NEW
Version:3.03.03
Opened:26/08/2020
Closed:03/09/2020
Released:01/10/2020
Job: J024909

HTML Widgets; widget.UI.ComboBox control; Not firing change event when cleared but firing when not changed

The widget.UI.ComboBox was not firing its Change event when its value was cleared. However, it was incorrectly firing the event when a value was selected from the dropdown list; even if the current value was re-selected.

This could be demonstrated in the new SMS Message widget, clearing the "Type" list was not firing the change event to show the "Phone Number" textbox.

Also, selecting "Account" from the "Type" dropdown and then entering an Account in the box below and then reselecting "Account" from the "Type" dropdown was clearing the Account value.

This happened both running from within finPOWER Connect and also when running under finPOWER Connect Cloud.

NOTE: Change event handlers should always set the ChangeHandled property on the event object, e.g.,


function cboTest_Change(sender, e) {
// Handled
if (e) e.ChangeHandled = true;
}


WARNING: Calling a blocking method such as window.alert() from with a change event may cause the event to fire twice.