Skip to content

Commit a4afe23

Browse files
committed
Fixes clearing the search
`typeahead.js` has its own value store so clearing the value (`val()`) of the input is only aesthetic. This clears the input correctly and the search icon will now reappear after clicking the X cross.
1 parent 4901c06 commit a4afe23

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

resources/assets/js/laravel.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ $(function() {
112112
});
113113

114114
$('#cross').click(function() {
115-
typeahead.val('').keyup();
115+
typeahead.typeahead('val', '').keyup();
116116
$article.css('opacity', '1');
117117
});
118118
}

0 commit comments

Comments
 (0)