-
Notifications
You must be signed in to change notification settings - Fork 17
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
Cannot use select2
within modal
#1
Comments
Hi @atd I updated the gem but forgot to update the README In the latest version (0.2.0) you need to specify select 2 version which you are using. See Configuration Try to upgrade the gem and configure version of select2 which you are you using |
@atd if it still doesn't work could you please specify which modal you are using and attach screenshots or markdown if possible |
Yes, you are right. I see the issue now. I will fix it shortly |
@atd this but should be fixed in version |
This code fails:
is failing with:
This is because the selected option is added to a container outside the modal
Maybe https://github.com/Hirurg103/capybara_select2/blob/master/lib/capybara_select2/helpers.rb#L42 should search from the body?
Thank you for reviving this gem!
The text was updated successfully, but these errors were encountered: