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

sm-select model binding doesn't work #173

Open
RobinJ1995 opened this issue Apr 1, 2017 · 1 comment
Open

sm-select model binding doesn't work #173

RobinJ1995 opened this issue Apr 1, 2017 · 1 comment

Comments

@RobinJ1995
Copy link

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.

@martinmanzo
Copy link

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.

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

2 participants