Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
west-farmer opened this issue Jun 12, 2020 · 0 comments
Closed

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

west-farmer opened this issue Jun 12, 2020 · 0 comments
Assignees
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Milestone

Comments

@west-farmer
Copy link

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
            });
        }

`

@cagataycivici cagataycivici self-assigned this Jul 3, 2020
@cagataycivici cagataycivici added the Type: Bug Issue contains a bug related to a specific component. Something about the component is not working label Jul 3, 2020
@cagataycivici cagataycivici added this to the 2.0.0-rc.3 milestone Jul 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Projects
None yet
Development

No branches or pull requests

2 participants