mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Tabs: Wrap attribute value in quotes when querying. Fixes #8207 - Tabs: Error with href selector.
This commit is contained in:
parent
9bb9141f29
commit
adbc2733bb
2
ui/jquery.ui.tabs.js
vendored
2
ui/jquery.ui.tabs.js
vendored
@ -434,7 +434,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