Opened 13 years ago

Closed 13 years ago

Last modified 12 years ago

#1091 closed defect (fixed)

ComboBox.valueChanged fires even when value has not changed

Reported by: guest Owned by: dylan
Priority: high Milestone:
Component: Widgets Version: 0.3
Keywords: Cc:
Blocked By: Blocking:

Description

setValue: function(value) {
  this.comboBoxValue.value = value;
  if (this.textInputNode.value != value) { // prevent mucking up of selection
    this.textInputNode.value = value;
  }
  dojo.widget.html.stabile.setState(this.widgetId, this.getState(), true);
  this.onValueChanged(value);
}

Probably it woud make sense to move the trigger in the if block

Change History (4)

comment:1 Changed 13 years ago by dylan

Milestone: 0.4
Owner: changed from anonymous to dylan

comment:2 Changed 13 years ago by dylan

Status: newassigned

comment:3 Changed 13 years ago by dylan

Resolution: fixed
Status: assignedclosed

(In [5703]) fixes #1091, ComboBox?.valueChanged fires even when value has not changed, thanks for the bug report and suggestion

comment:4 Changed 12 years ago by (none)

Milestone: 0.4

Milestone 0.4 deleted

Note: See TracTickets for help on using tickets.