Skip to content

Commit

Permalink
Fix: Toggle of class was needed to switch states
Browse files Browse the repository at this point in the history
  • Loading branch information
cahirodoherty-learningpool committed Dec 16, 2022
1 parent 5d8283b commit 65feb98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/adapt-contrib-glossaryView.js
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ export default class GlossaryView extends Backbone.View {
const searchItemsAlert = this.model.get('searchItemsAlert') || '';
const searchResults = (searchItem.length > 0);
this.$('.js-glossary-cancel-btn-click').toggleClass('u-display-none', !searchResults);
this.$('.js-glossary-search-icon').addClass('u-display-none', searchResults);
this.$('.js-glossary-search-icon').toggleClass('u-display-none', searchResults);
this.toggleHeaders(searchResults);

if (searchResults) {
Expand Down

0 comments on commit 65feb98

Please sign in to comment.