Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

Select ng-multiple not working with ng-options #2113

Closed
Conorrr opened this issue Mar 7, 2013 · 3 comments
Closed

Select ng-multiple not working with ng-options #2113

Conorrr opened this issue Mar 7, 2013 · 3 comments

Comments

@Conorrr
Copy link

Conorrr commented Mar 7, 2013

Multiple items cannot be selected from a multiple select menu when using ng-multiple and ng-options.I have tested with an object source and an array source, neither work.

It does appear to work if you use multiple (it acts quite differently though)

see http://jsfiddle.net/Spf22/8/

KJTsanaktsidis added a commit to KJTsanaktsidis/angular.js that referenced this issue Jul 16, 2013
Previously, <select ngMultiple='...'> would only work with hard-coded
<option> elements underneath, not with an ngOptions attribute. This is
because the boolean ng-multiple attribute is only actually applied inside a
scope.$watch, which happens after the link function for select is called.

The fix is to scope.$watch on the multiple attribute in the select
directive, and refresh the directive when it changes.

Closes angular#2113
@Narretz
Copy link
Contributor

Narretz commented Jan 12, 2014

This was decided to be a won't-fix here: #3230

@petebacondarwin

@petebacondarwin
Copy link
Member

I think the plan is to try getting select options working with ng-repeat in 1.3 so that you don't need to use ngOptions for this use case.

@Narretz Narretz added this to the Purgatory milestone Jul 7, 2014
@btford btford removed the gh: issue label Aug 20, 2014
@gkalpak
Copy link
Member

gkalpak commented May 31, 2016

Support for ngMultiple (and dynamically changing multiple i general) has been removed since v1.2.0-rc.1 (see d87fa00).

Closing...

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

No branches or pull requests

5 participants