This is an automated email from the ASF dual-hosted git repository.
yishayw pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git
The following commit(s) were added to refs/heads/develop by this push:
new 3039689807 Selection model - make sure null dp implies null selection
3039689807 is described below
commit 3039689807933eb9643ce314f98571d3a6375694
Author: Yishay Weiss <[email protected]>
AuthorDate: Mon Apr 17 11:05:37 2023 +0300
Selection model - make sure null dp implies null selection
---
.../apache/royale/html/beads/models/ArrayListMultiSelectionModel.as | 3 +++
1 file changed, 3 insertions(+)
diff --git
a/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/beads/models/ArrayListMultiSelectionModel.as
b/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/beads/models/ArrayListMultiSelectionModel.as
index 63c00b4b1f..3cf4e177c9 100644
---
a/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/beads/models/ArrayListMultiSelectionModel.as
+++
b/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/beads/models/ArrayListMultiSelectionModel.as
@@ -101,6 +101,9 @@ package org.apache.royale.html.beads.models
_selectedIndices = indices;
syncItemsAndIndices();
}
+ } else if (!_dataProvider)
+ {
+ selectedIndices = null;
}
dispatchEvent(new Event("dataProviderChanged"));
}