Skip to content

Picklist 'move-all-to-source' event argument e.items is empty #341

Closed
@west-farmer

Description

@west-farmer

The event argument items always empty, it likes used incorrect var in 'moveAllToSource(event)' method.

`
moveAllToSource(event) {
if (this.value[1]) {
let sourceList = [...this.value[0]];
let targetList = [...this.value[1]];

            this.$emit('move-all-to-source', {
                originalEvent: event,
                items: sourceList  // _**here  shoud  be targetList  ???**_
            });

            sourceList = [...sourceList, ...targetList];
            targetList = [];

            let value = [...this.value];
            value[0] = sourceList;
            value[1] = targetList;
            this.$emit('input', value);

            this.d_selection[1] = [];
            this.$emit('update:selection', this.d_selection);
            this.$emit('selection-change', {
                originalEvent: event,
                value: this.d_selection
            });
        }

`

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type: BugIssue contains a bug related to a specific component. Something about the component is not working

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions