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

Rendering duplicated list of options #63

Closed
janwebdev opened this issue Jun 15, 2021 · 3 comments
Closed

Rendering duplicated list of options #63

janwebdev opened this issue Jun 15, 2021 · 3 comments

Comments

@janwebdev
Copy link

janwebdev commented Jun 15, 2021

For now plugin is rendering duplicated list of options:

<select id="supplier-cats-select" class="dual-listbox" multiple="multiple">
	<option value="1">One</option>
	<option value="2">Two</option>
	<option value="3">Three</option>
	<option value="4">Four</option>
	<option value="5">Five</option>
	<option value="6">Six</option>
	<option value="7">Seven</option>
	<option value="8">Eight</option>
	<option value="9">Nine</option>
	<option value="10">Ten</option>
</select>

and its displays like this:

DualListbox($this.get(0), {
            addEvent: function (value) {
                console.log(value);
            },
            removeEvent: function (value) {
                console.log(value);
            },
            availableTitle: 'Available categories',
            selectedTitle: 'Selected categories',
            addButtonText: 'Add',
            removeButtonText: 'Remove',
            addAllButtonText: 'Add All',
            removeAllButtonText: 'Remove All',
            options: options,
        });

the problem is in source javascript file ar ./src/dual-listbox.js on line 34-36. it has to be removed

@RuchitMicro
Copy link
Contributor

Please somebody solve this.

@RuchitMicro
Copy link
Contributor

RuchitMicro commented Jan 1, 2022

Hello,
I have created a pull request to solve this problem you can refer the changes from here

@JostCrow
Copy link
Collaborator

This is now merged in. Not released yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants