Add treeitem to option selector (optgroup support)#47
Add treeitem to option selector (optgroup support)#47abuisman wants to merge 1 commit intogoodwill:masterfrom
Conversation
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
| @@ -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") | |||
There was a problem hiding this comment.
Maybe the role attribute should be added to this line as well.
There was a problem hiding this comment.
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.
|
Ah, that is true. Never mind then. On Wed, Sep 28, 2016, 2:02 AM Achilleas notifications@github.com wrote:
|
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