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

fix: appendToBody doesn't work with jQuery < 1.10.0, fix for #944 #943

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

AlexFess
Copy link

.relpaceWith in jQuery (version less then 1.10) doesn't work properly
and as so, ui-select with 'appendToBody=true' doesn't display selected
value.
Use .after() and .remove() instead of .replaceWith() to avoid this
issue.

@AlexFess AlexFess changed the title fix: appendToBody doesn't work with jQuery < 1.10.0 fix: appendToBody doesn't work with jQuery < 1.10.0, May 21, 2015
@AlexFess AlexFess changed the title fix: appendToBody doesn't work with jQuery < 1.10.0, fix: appendToBody doesn't work with jQuery < 1.10.0, fix for #944 May 21, 2015
@AlexFess
Copy link
Author

Add a fix for #944 (remove target element check)

@wesleycho
Copy link
Contributor

This needs squashing, then rebasing.

.relpaceWith in jQuery (version less then 1.10) doesn't work properly
and as so, ui-select with 'appendToBody=true' doesn't display selected
value.
Use .after() and .remove() instead of .replaceWith() to avoid this
issue.

fix for angular-ui#944: Don't restore focus if it was moved out of select (irregardles of target
element). Otherwise it looks too confusing when clicking on links or any
other control that is not an input/button/textarea.
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.

2 participants