Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Monster
Manage
Activity
Members
Plan
Jira
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
OSS
Libraries
Javascript
Monster
Commits
b66b6eb4
Verified
Commit
b66b6eb4
authored
1 year ago
by
Volker Schukai
Browse files
Options
Downloads
Patches
Plain Diff
fix: only 10 tabs can be activated #129
parent
60d7750d
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
source/components/form/tabs.mjs
+12
-6
12 additions, 6 deletions
source/components/form/tabs.mjs
with
12 additions
and
6 deletions
source/components/form/tabs.mjs
+
12
−
6
View file @
b66b6eb4
...
...
@@ -392,7 +392,7 @@ function togglePopper() {
/**
* @private
*/
function
attachResizeObserver
()
{
;
function
attachResizeObserver
()
{
// against flickering
this
[
resizeObserverSymbol
]
=
new
ResizeObserver
((
entries
)
=>
{
...
...
@@ -417,7 +417,7 @@ function attachResizeObserver() {;
/**
* @private
*/
function
attachTabChangeObserver
()
{
;
function
attachTabChangeObserver
()
{
// against flickering
new
MutationObserver
((
mutations
)
=>
{
...
...
@@ -504,6 +504,7 @@ function show(element) {
const
nodes
=
getSlottedElements
.
call
(
this
);
for
(
const
node
of
nodes
)
{
const
id
=
node
.
getAttribute
(
"
id
"
);
if
(
id
===
reference
)
{
node
.
classList
.
add
(
"
active
"
);
...
...
@@ -518,7 +519,12 @@ function show(element) {
}
const
options
=
this
.
getOption
(
"
fetch
"
,
{});
loadAndAssignContent
(
node
,
url
,
options
);
const
filter
=
undefined
;
loadAndAssignContent
(
node
,
url
,
options
,
filter
).
then
(()
=>
{
}).
catch
(
e
=>
{
addAttributeToken
(
this
,
ATTRIBUTE_ERRORMESSAGE
,
e
.
message
);
});
}
}
else
{
node
.
classList
.
remove
(
"
active
"
);
...
...
@@ -526,14 +532,14 @@ function show(element) {
}
const
standardButtons
=
this
.
getOption
(
"
buttons.standard
"
);
for
(
const
[
index
]
in
standardButtons
)
{
for
(
const
index
in
standardButtons
)
{
const
button
=
standardButtons
[
index
];
const
state
=
button
[
"
reference
"
]
===
reference
?
"
active
"
:
"
inactive
"
;
this
.
setOption
(
`buttons.standard.
${
index
}
.state`
,
state
);
}
const
popperButton
=
this
.
getOption
(
"
buttons.popper
"
);
for
(
const
[
index
]
in
popperButton
)
{
for
(
const
index
in
popperButton
)
{
const
button
=
popperButton
[
index
];
const
state
=
button
[
"
reference
"
]
===
reference
?
"
active
"
:
"
inactive
"
;
this
.
setOption
(
`buttons.popper.
${
index
}
.state`
,
state
);
...
...
@@ -773,7 +779,7 @@ function initTabButtons() {;
});
}
return
;
return
Promise
.
resolve
()
;
});
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment