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

isEmpty also true when selected == 0 #687

Closed
wants to merge 1 commit into from
Closed

Conversation

starf
Copy link

@starf starf commented Feb 19, 2015

seems kind of logically
greetings

@@ -195,7 +195,7 @@
ctrl.$filter = $filter;

ctrl.isEmpty = function() {
return angular.isUndefined(ctrl.selected) || ctrl.selected === null || ctrl.selected === '';
return angular.isUndefined(ctrl.selected) || ctrl.selected === null || ctrl.selected === '' || ctrl.selected === 0;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if this will be ok since 0 could be a value, so it isn't actually empty. This function will make the placeholder appear even when the user selects 0as value

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I understand. Thanks. Probably not an issue anymore when #302 is implemented.

@user378230
Copy link
Contributor

I agree with dimirc comments. So closing.

@user378230 user378230 closed this Mar 20, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants