Browse Source

Fix issue with not pulling href from result #3409

pull/3763/merge
Jack Lukic 8 years ago
parent
commit
6867f48a06
2 changed files with 4 additions and 1 deletions
  1. 1
      RELEASE-NOTES.md
  2. 4
      src/definitions/modules/search.js

1
RELEASE-NOTES.md

@ -46,6 +46,7 @@
- **Button** - Fixed issue where `disabled loading button` would not remove `pointer-events` #2933
- **Button/Dropdown** - Button dropdowns using `default text` no longer receive incorrect font styling for placeholder text
- **Checkbox** - Radio buttons received `indeterminate` styles when user has not yet interacted with the page in Chrome
- **Dropdown** - Dropdowns no longer re-open on selection when nested inside of a `<label>` #3917
- **Dropdown** - Fixed bug where using `action: 'hide'` could cause `text` value not to be passed to `onChange` callback
- **Dropdown** - Regenerated dropdown will no longer ignore `disabled` property #4010 **Thanks @eymengunay!**
- **Dropdown** - `apiSettings` was not defaulting to use `cache: 'local'` as specified in the docs

4
src/definitions/modules/search.js

@ -192,7 +192,9 @@ $.fn.search = function(parameters) {
var
$result = $(this),
$title = $result.find(selector.title).eq(0),
$link = $result.find('a[href]').eq(0),
$link = $result.is('a[href]')
? $result
: $result.find('a[href]').eq(0),
href = $link.attr('href') || false,
target = $link.attr('target') || false,
title = $title.html(),

Loading…
Cancel
Save