This commit is contained in:
parent
2770bb3126
commit
71d00fc8f8
1 changed files with 3 additions and 3 deletions
|
@ -48,9 +48,9 @@ export class Setting {
|
|||
if (!item.actionElement && item.createActionElement) {
|
||||
actionElement = item.createActionElement();
|
||||
}
|
||||
const tagName = actionElement?.classList.contains("b3-switch")?"label":"div";
|
||||
if (item.direction === undefined) {
|
||||
item.direction = ["TEXTAREA"].includes(actionElement.tagName) ? 'row' : 'column';
|
||||
const tagName = actionElement?.classList.contains("b3-switch") ? "label" : "div";
|
||||
if (typeof item.direction === "undefined") {
|
||||
item.direction = "TEXTAREA" === actionElement.tagName ? "row" : "column";
|
||||
}
|
||||
if (item.direction === "row") {
|
||||
html = `<${tagName} class="b3-label">
|
||||
|
|
Loading…
Add table
Reference in a new issue