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

feat(typeahead): add appendElementToId #4497

Closed
wants to merge 1 commit into from

Conversation

wesleycho
Copy link
Contributor

  • Add appending popup to specific id

This supercedes #4231

@wesleycho
Copy link
Contributor Author

Will have doc update shortly

- Add appending popup to specific id
@@ -435,6 +437,8 @@ angular.module('ui.bootstrap.typeahead', ['ui.bootstrap.position'])

if (appendToBody) {
$document.find('body').append($popup);
} else if (appendToElementId !== false) {
Copy link
Contributor

Choose a reason for hiding this comment

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

!== false is needed in here? Any case where it could be falsy but acceptable?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Given the above setting of the variable to false by default, I think this is a fine check.

@wesleycho
Copy link
Contributor Author

Greenlit by @Foxandxss

@wesleycho wesleycho closed this in fdf53e6 Sep 30, 2015
@wesleycho wesleycho deleted the pr4231 branch September 30, 2015 23:29
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants