Skip to content

Commit

Permalink
Merge branch 'main' into CFE-80-dependency-handling-improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
rokbar-nosto committed Dec 12, 2023
2 parents 0e4b470 + 795f652 commit ec39197
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions examples/liquid/autocomplete.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<div class="ns-autocomplete-history-item" data-ns-hit="{{ hit | json | escape }}">
{{ hit.item }}
<a
href="javascript:void(0)"
href="javascript:;"
class="ns-autocomplete-history-item-remove"
data-ns-remove-history="{{hit.item}}">
&#x2715;
Expand Down Expand Up @@ -54,7 +54,7 @@
{% for hit in response.products.hits %}
<a
class="ns-autocomplete-product"
{% comment %} href="{{ hit.url }}" {% endcomment %}
href="{{ hit.url }}"
data-ns-hit="{{ hit | json | escape }}">
<img
class="ns-autocomplete-product-image"
Expand Down
2 changes: 1 addition & 1 deletion examples/mustache/autocomplete.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
{{#history}}
<div class="ns-autocomplete-history-item" data-ns-hit="{{toJson}}">
{{item}}
<a href="javascript:void(0)" class="ns-autocomplete-history-item-remove" data-ns-remove-history="{{item}}">
<a href="javascript:;" class="ns-autocomplete-history-item-remove" data-ns-remove-history="{{item}}">
&#x2715;
</a>
</div>
Expand Down
4 changes: 2 additions & 2 deletions spec/components/Autocomplete.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ function History({ history }: { history: AutocompleteProps["history"] }) {
>
{hit.item}
<a
href="javascript:void(0)"
href="javascript:;"
className="ns-autocomplete-history-item-remove"
data-ns-remove-history={hit.item}
>
Expand Down Expand Up @@ -124,7 +124,7 @@ function Products({ products }: { products: SearchProduct[] }) {
return (
<a
className="ns-autocomplete-product"
href="javascript:void(0)"
href="javascript:;"
key={hit.productId}
data-ns-hit={JSON.stringify(hit)}
data-testid="product"
Expand Down

0 comments on commit ec39197

Please sign in to comment.