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

add input id to search <input> if present on ui-select directive as input-id #1220

Merged
merged 2 commits into from
Oct 3, 2015
Merged

add input id to search <input> if present on ui-select directive as input-id #1220

merged 2 commits into from
Oct 3, 2015

Conversation

arkarkark
Copy link
Contributor

fixes #1195
fixes #236

@arkarkark
Copy link
Contributor Author

basically a copy of @georeith 's #237 #238

@dimirc
Copy link
Contributor

dimirc commented Oct 1, 2015

Can you add one simple test to it so we can merge asap?

@arkarkark
Copy link
Contributor Author

tests added!

(sorry for the whitespace cleanup, my editor couldn't help itself).

});
});

it('should add an id to the search input field', function () {
Copy link
Contributor

Choose a reason for hiding this comment

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

Looks like same test is repeated twice

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I wanted to test both single and multiple because they are very different beasts (even though they both have the same text input name right now). The it name is the same because the describe names will disambiguate them. I'm happy to remove one if you want.
I'd prefer to keep the multiple test because that's the one I care about most (and that search field is always on display so much more likely to be used for <label for="...">.

dimirc added a commit that referenced this pull request Oct 3, 2015
add input id to search <input> if present on ui-select directive as input-id
@dimirc dimirc merged commit 04b9752 into angular-ui:master Oct 3, 2015
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.

Name, label and for attribute No id on input means it can't be attached to a label
2 participants