Skip to content

Conversation

@abuisman
Copy link

@abuisman abuisman commented Jun 7, 2016

There is an issue with optgroups because the labels of the optgroups also have the class select2-results__option. Adding the role to the selector fixes this issue.

More details about the issue here.
#46

There is an issue with optgroups because the labels of the optgroups also have the class `select2-results__option`. Adding the role to the selector fixes this issue.

More details about the issue here.
goodwill#46
end

[value].flatten.each do |value|
if find(:xpath, "//body").has_selector?("#{drop_container} li.select2-results__option")

Choose a reason for hiding this comment

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

Maybe the role attribute should be added to this line as well.

Copy link
Author

Choose a reason for hiding this comment

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

Thanks for the review.

Should it? Did you run into a situation where this was an issue? I am asking because the comment on line 42 says 'select2 version 4.0' which might indicate that the API is not always the same.

Choose a reason for hiding this comment

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

Works good for me.

@Zeragamba
Copy link

Ah, that is true. Never mind then.

On Wed, Sep 28, 2016, 2:02 AM Achilleas [email protected] wrote:

@abuisman commented on this pull request.

In gem/lib/capybara-select2.rb
#47:

@@ -40,7 +40,7 @@ def select2(value, options = {})
[value].flatten.each do |value|
if find(:xpath, "//body").has_selector?("#{drop_container} li.select2-results__option")

Thanks for the review.

Should it? Did you run into a situation where this was an issue? I am
asking because the comment on line 42 says 'select2 version 4.0' which
might indicate that the API is not always the same.


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#47, or mute the thread
https://github.com/notifications/unsubscribe-auth/ACN74WIpMmLRXB7Uj5jbLUWMhuAbQZwVks5qugG0gaJpZM4Ivyew
.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants