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

Mutliple select not returning multiple data #506

Open
alexander-schranz opened this issue Jul 21, 2015 · 4 comments
Open

Mutliple select not returning multiple data #506

alexander-schranz opened this issue Jul 21, 2015 · 4 comments
Labels

Comments

@alexander-schranz
Copy link
Member

No description provided.

@danrot
Copy link
Contributor

danrot commented Aug 14, 2015

Under which circumstances? E.g. for the navigation contexts in Sulu it seems to work, I can select multiple navigation contexts, save them, and they are still there when reloading.

@wachterjohannes
Copy link
Member

i think they are handle seperatly from the form-mapper

@danrot
Copy link
Contributor

danrot commented Aug 17, 2015

But I guess the form mapper is using the return value, so it should also work here /cc @alexander-schranz

@alexander-schranz
Copy link
Member Author

alexander-schranz commented Jul 12, 2016

e.g. in a custom bundle:

     <div id="news-brand"
             data-aura-component="select@husky"
             data-aura-data='[{"id": "1", "name": "test 1"}, {"id": "2", "name": "test 2"}]'
             data-aura-default-label="Select Brands"
             data-aura-direction="bottom"
             data-aura-value-name="name"
             data-aura-multiple-select="true"
             data-aura-instance-name="brands"
             data-mapper-property="brands"
             data-type="husky-select"
             data-form="true">
       </div>

this will only return the following also when both are selected:

"brands":{
    "value":"test 1",
    "id":"1"
}

run this before save in the form seems todo the right thing.

this.sandbox.dom.data('#brands', 'selection');

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

No branches or pull requests

3 participants