Skip to content

Commit

Permalink
Merge pull request #5 from EyeSeeTea/fix/modal-click-input
Browse files Browse the repository at this point in the history
Remove tab index when opening feedback tool
  • Loading branch information
tokland committed Aug 31, 2020
2 parents df68a03 + 9986939 commit 74cbbc5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/feedback.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,10 @@ var defaultI18nProperties = require('../i18n/en.properties');
$('body').append('<button class="feedback-btn feedback-btn-gray">' + settings.initButtonText + '</button>');
}
$(document).on('click', settings.feedbackButton, function () {
// FIXME: Feedback tool does not properly work when a modal with tabIndex is set
// Work-around: Remove tabIndex attribute for all items
$("div[tabindex='-1']").removeAttr("tabindex");

if (isFeedbackButtonNative) {
$(this).hide();
}
Expand Down

0 comments on commit 74cbbc5

Please sign in to comment.