Skip to content

Commit

Permalink
create a copy array of selected values
Browse files Browse the repository at this point in the history
  • Loading branch information
uclaros committed May 17, 2024
1 parent afff881 commit 3016e93
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/qml/components/MMListMultiselectDrawer.qml
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ MMDrawer {
function addOrRemoveSelected( val ) {
if ( root.selected.indexOf( val ) === -1 ) {
root.selected.push( val )
root.selected = root.selected.slice()
}
else {
root.selected = root.selected.filter( ( x ) => x !== val )
Expand Down

0 comments on commit 3016e93

Please sign in to comment.