Skip to content

Commit

Permalink
ROU-4647: Tabs - TabIndex leave current tabs (#858)
Browse files Browse the repository at this point in the history
* Fix focus when using TabKey on TabHeaderItem

* Revert "Fix focus when using TabKey on TabHeaderItem"

This reverts commit d2d0844.

* Fix focusable elements string missing some input types
  • Loading branch information
OS-giulianasilva authored Nov 14, 2023
1 parent 820c907 commit bafa9c5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dist/OutSystemsUI.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ declare namespace OSFramework.OSUI.Constants {
const EnableLogMessages = false;
const EmptyString = "";
const FocusTrapIgnoreAttr = "ignore-focus-trap";
const FocusableElems = "a[href]:not([disabled]),[tabindex=\"0\"], button:not([disabled]), textarea:not([disabled]), input[type=\"text\"]:not([disabled]), input[type=\"radio\"]:not([disabled]), input[type=\"checkbox\"]:not([disabled]),input[type=\"submit\"]:not([disabled]), select:not([disabled])";
const FocusableElems = "a[href]:not([disabled]),[tabindex=\"0\"], button:not([disabled]), textarea:not([disabled]), input:not([disabled]), select:not([disabled])";
const JavaScriptTypes: {
Undefined: string;
Boolean: string;
Expand Down
2 changes: 1 addition & 1 deletion dist/OutSystemsUI.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ var OSFramework;
Constants.EnableLogMessages = false;
Constants.EmptyString = '';
Constants.FocusTrapIgnoreAttr = 'ignore-focus-trap';
Constants.FocusableElems = 'a[href]:not([disabled]),[tabindex="0"], button:not([disabled]), textarea:not([disabled]), input[type="text"]:not([disabled]), input[type="radio"]:not([disabled]), input[type="checkbox"]:not([disabled]),input[type="submit"]:not([disabled]), select:not([disabled])';
Constants.FocusableElems = 'a[href]:not([disabled]),[tabindex="0"], button:not([disabled]), textarea:not([disabled]), input:not([disabled]), select:not([disabled])';
Constants.JavaScriptTypes = {
Undefined: 'undefined',
Boolean: 'boolean',
Expand Down
2 changes: 1 addition & 1 deletion src/scripts/OSFramework/OSUI/Constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ namespace OSFramework.OSUI.Constants {

/* Store focusable elements when doing a focus trap inside an element*/
export const FocusableElems =
'a[href]:not([disabled]),[tabindex="0"], button:not([disabled]), textarea:not([disabled]), input[type="text"]:not([disabled]), input[type="radio"]:not([disabled]), input[type="checkbox"]:not([disabled]),input[type="submit"]:not([disabled]), select:not([disabled])';
'a[href]:not([disabled]),[tabindex="0"], button:not([disabled]), textarea:not([disabled]), input:not([disabled]), select:not([disabled])';

/* Store JavaScript types*/
export const JavaScriptTypes = {
Expand Down

0 comments on commit bafa9c5

Please sign in to comment.