Skip to content
This repository has been archived by the owner on Dec 30, 2018. It is now read-only.

Can't set "appendTo" property to null #23

Open
hujhax opened this issue May 13, 2015 · 2 comments
Open

Can't set "appendTo" property to null #23

hujhax opened this issue May 13, 2015 · 2 comments

Comments

@hujhax
Copy link

hujhax commented May 13, 2015

From the documentation for appendTo:

When the value is null, the parents of the input field will be checked for a class of ui-front. If an element with the ui-front class is found, the menu will be appended to that element. Regardless of the value, if no element is found, the menu will be appended to the body.

It looks like this line of code is making this impossible:

options.appendTo = options.appendTo || element.parents('.ng-view')[0] || element.parents('[ng-view]')[0] || null;
@zensh
Copy link
Owner

zensh commented May 13, 2015

If you want to append to body, you can set it directly

@hujhax
Copy link
Author

hujhax commented May 13, 2015

True, but what I want is to append to the nearest parent that ends in ui-front.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants