From bf4faea8e849d4959bee225f49dbef2b82afed85 Mon Sep 17 00:00:00 2001 From: "GRAPECITY\\ShaySong" Date: Thu, 23 Nov 2023 11:05:07 +0800 Subject: [PATCH] feat(FORGUNCY-1945): Support disable tab order --- Resources/CellTypes/Base.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Resources/CellTypes/Base.ts b/Resources/CellTypes/Base.ts index 488d41e..dc39461 100644 --- a/Resources/CellTypes/Base.ts +++ b/Resources/CellTypes/Base.ts @@ -426,6 +426,7 @@ export interface IInputCellTypeBaseParam { TabIndex: number; + DisableTabOrder?: boolean; } export class InputCellTypeBase extends ElementCellTypeBase { @@ -451,7 +452,7 @@ } if (this.shouldEnableTabIndex()) { const inputCellType = this.cellType as IInputCellTypeBaseParam; - $('button, input, a, textarea', `#${this.ID}`).attr("tabindex", inputCellType.TabIndex); + $('button, input, a, textarea', `#${this.ID}`).attr("tabindex", inputCellType.DisableTabOrder ? -1 : inputCellType.TabIndex); } } } -- Gitee