zregvart commented on a change in pull request #305: CAMEL-14809 : Clear icon 
in the search box in navbar to clear the inner contents
URL: https://github.com/apache/camel-website/pull/305#discussion_r402884844
 
 

 ##########
 File path: antora-ui-camel/src/js/vendor/alogliasearch.bundle.js
 ##########
 @@ -93,5 +96,11 @@
         results.innerHTML = ''
       }
     }), 150)
+    cancel.addEventListener('click', function () {
+      container.className = 'navbar-search results-hidden'
+      results.innerHTML = ''
+      search.value = ''
+      cancel.style.display = 'none'
 
 Review comment:
   Nitpicking: this and the block from 30-32 could be pulled in a separate 
function.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to