ngSemantic icon indicating copy to clipboard operation
ngSemantic copied to clipboard

sm-select model binding doesn't work

Open RobinJ1995 opened this issue 8 years ago • 1 comments
trafficstars

To make sure, I have taken the example from the documentation you provide;

<sm-select
	[options]="{direction: 'upward'}"
	[(model)]="gender" placeholder="Select gender..."
	class="fluid">
	<option value="m"><i class="icon male"></i> Male</option>
	<option value="f"><i class="icon female"></i> Female</option>
</sm-select>

Yet gender in my component remains undefined after a selection has been made in the sm-select component.

RobinJ1995 avatar Apr 01 '17 15:04 RobinJ1995

I'm having the opposite problem. If I clean the selected items array in the controller, the view doesn't update and items remain selected.

martinmanzo avatar Apr 24 '17 18:04 martinmanzo