mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-10-05 01:44:18 +00:00
Tabs: Wrap attribute value in quotes when querying. Fixes #8207 - Tabs: Error with href selector.
(cherry picked from commit adbc2733bb
)
This commit is contained in:
parent
c21aa07c1b
commit
090ce4369d
2
ui/jquery.ui.tabs.js
vendored
2
ui/jquery.ui.tabs.js
vendored
@ -427,7 +427,7 @@ $.widget( "ui.tabs", {
|
||||
// meta-function to give users option to provide a href string instead of a numerical index.
|
||||
// also sanitizes numerical indexes to valid values.
|
||||
if ( typeof index == "string" ) {
|
||||
index = this.anchors.index( this.anchors.filter( "[href$=" + index + "]" ) );
|
||||
index = this.anchors.index( this.anchors.filter( "[href$='" + index + "']" ) );
|
||||
}
|
||||
|
||||
return index;
|
||||
|
Loading…
Reference in New Issue
Block a user