Skip to content

Commit dd717ec

Browse files
committed
Merge branch 'master' of https://github.com/haxeui/haxeui-core
2 parents e8a6fb0 + 58e66c9 commit dd717ec

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

haxe/ui/containers/ButtonBar.hx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,9 @@ private class SelectedIndex extends DataBehaviour {
5959
builder._currentButton = button;
6060
}
6161

62-
_component.dispatch(new UIEvent(UIEvent.CHANGE));
62+
var event = new UIEvent(UIEvent.CHANGE);
63+
event.previousValue = _previousValue;
64+
_component.dispatch(event);
6365
}
6466
}
6567

@@ -214,4 +216,4 @@ class ButtonBarBuilder extends CompositeBuilder {
214216
private function showWarning() {
215217
trace("WARNING: trying to create an instance of 'ButtonBar' directly, use either 'HorizontalButtonBar' or 'VerticalButtonBar'");
216218
}
217-
}
219+
}

0 commit comments

Comments
 (0)