Skip to content

Commit

Permalink
IVYPORTAL-17535 Focus on the search icon + pressing enter not working…
Browse files Browse the repository at this point in the history
… LE: fix bug (#1046)

Co-authored-by: lndanh-axonivy <[email protected]>
  • Loading branch information
lndanh-axonivy and lndanh-axonivy authored Sep 24, 2024
1 parent 941ea41 commit d40fce5
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions AxonIvyPortal/portal/webContent/resources/js/portal.js
Original file line number Diff line number Diff line change
Expand Up @@ -475,6 +475,13 @@ const quickSearchInputId = '[id="quick-global-search-component:global-search-dat
const useSettingMenuId = 'a#user-settings-menu';

$(document).ready(function() {
// This function is to enhance accessibility feature for search icon
$(searchIconId).on('click', function() {
const searchInput = $('[id="global-search-component:global-search-data"]');
if (searchInput) {
searchInput.focus();
}
})
let focusableElements = [
$(singleDashboardId).length ? $(singleDashboardId).find('a') : $(multipleDashboardId).find('a')[0],
$(processItemId).find('a'),
Expand Down

0 comments on commit d40fce5

Please sign in to comment.