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

Passed dropdown parent shall be wrapped in $() #5373

Closed
wants to merge 2 commits into from

Conversation

mlt
Copy link
Contributor

@mlt mlt commented Sep 25, 2018

If passing a non-jQuery object (string), a .css call throws an exception $offsetParent.css is not a function in AttachBody.prototype._positionDropdown.

This pull request includes a

  • Bug fix
  • New feature
  • Translation

The following changes were made

  • Call $() on passed dropdownParent / data-dropdown-parent in AttachBody
  • It seems generally safe to call $() on already a jQuery objects

If this is related to an existing ticket, include a link to it as well.

@stale
Copy link

stale bot commented Mar 13, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the status: stale label Mar 13, 2019
@mlt
Copy link
Contributor Author

mlt commented Mar 14, 2019

ehm...is there anything holding this one that I shall fix? I kind of rely on it and it has a test.

@kevin-brown
Copy link
Member

I know it's been a few months and we dropped the ball on this one, but this generally looks good and it's my goal to get it merged in.

But before we do that, is there any chance you can split your test changes out so we have two different tests? One for passing in a jQuery object and the other for passing in the selector.

@mlt
Copy link
Contributor Author

mlt commented May 29, 2019

I made a separate test case and rebased my branch.

@Peter-Potts
Copy link

Hi, thanks mlt for proposing this change.
I would also find it valuable - using the 'data-dropdown-parent' attribute (eg ="#myID') actually seems to fail otherwise.
Cheers

@stale
Copy link

stale bot commented Aug 19, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the status: stale label Aug 19, 2019
@kevin-brown kevin-brown added this to the 4.0.10 milestone Aug 19, 2019
@stale stale bot removed the status: stale label Aug 19, 2019
@kevin-brown kevin-brown removed this from the 4.0.10 milestone Aug 28, 2019
kevin-brown added a commit that referenced this pull request Aug 28, 2019
Support passing in a selector for `dropdownParent` option
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants