Skip to content
This repository has been archived by the owner on Oct 2, 2019. It is now read-only.

ui-select into ui-select trouble #2184

Open
MimikFc7 opened this issue Aug 27, 2019 · 2 comments
Open

ui-select into ui-select trouble #2184

MimikFc7 opened this issue Aug 27, 2019 · 2 comments

Comments

@MimikFc7
Copy link

MimikFc7 commented Aug 27, 2019

Hello!
Sorry me if my question is not bug.
but i cant make ui-select into ui-select

<ui-select multiple ng-model="reportfilterset.objectsfilter" theme="bootstrap" remove-selected="false">                  
  <ui-select-match placeholder="Выбрать параметры">
  <p>{{$item.name}}</p>  
                    
  <ui-select ng-if="$item.type == 2" id="selectedbox{{$item.id}}" theme="bootstrap"  ng-model="$item.value" close-on-select="true" ng-change="onChanged($selected);" title="" remove-selected="false">
   <ui-select-match placeholder="Выбрать реакции">{{$selected.name}}</ui-select-match>
        <ui-select-choices repeat="yesno in yesnoselector">
            {{ yesno.name }}                  
        </ui-select-choices>
    </ui-select>                   
    </ui-select-match>                 
   <ui-select-choices class="ui-select-choices" repeat="filterset in availableFilters">
         {{ filterset.name }}
  </ui-select-choices>
</ui-select>

when i add new item in parent select, value in selected first item have a pointer two element, why?

angular version: AngularJS v1.3.20
uiselect : 0.13.2

@MimikFc7
Copy link
Author

update: if i comment get $viewValue

 ngModel.$render = function() {
        //$select.selected = ngModel.$viewValue;
        //console.log($select.selected);
      };

normal work

@MimikFc7
Copy link
Author

update if comment render then not show a default value!
please help change that!

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

No branches or pull requests

1 participant