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
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
OSS
Libraries
Javascript
Monster
Commits
cc968063
Verified
Commit
cc968063
authored
6 months ago
by
Volker Schukai
Browse files
Options
Downloads
Patches
Plain Diff
fix(select): lookup after setSelection
parent
1a3f8416
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
source/components/form/button.mjs
+1
-1
1 addition, 1 deletion
source/components/form/button.mjs
source/components/form/select.mjs
+9
-0
9 additions, 0 deletions
source/components/form/select.mjs
with
10 additions
and
1 deletion
source/components/form/button.mjs
+
1
−
1
View file @
cc968063
This diff is collapsed.
Click to expand it.
source/components/form/select.mjs
+
9
−
0
View file @
cc968063
...
@@ -2282,6 +2282,7 @@ function isValueIsEmptyThenGetNormalize(value) {
...
@@ -2282,6 +2282,7 @@ function isValueIsEmptyThenGetNormalize(value) {
* @returns {Promise<unknown | void>}
* @returns {Promise<unknown | void>}
*/
*/
function
setSelection
(
selection
)
{
function
setSelection
(
selection
)
{
const
self
=
this
;
if
(
isString
(
selection
)
||
isInteger
(
selection
))
{
if
(
isString
(
selection
)
||
isInteger
(
selection
))
{
const
result
=
convertValueToSelection
.
call
(
this
,
selection
);
const
result
=
convertValueToSelection
.
call
(
this
,
selection
);
...
@@ -2328,6 +2329,14 @@ function setSelection(selection) {
...
@@ -2328,6 +2329,14 @@ function setSelection(selection) {
fireEvent
(
this
,
"
change
"
);
// https://gitlab.schukai.com/oss/libraries/javascript/monster/-/issues/291
fireEvent
(
this
,
"
change
"
);
// https://gitlab.schukai.com/oss/libraries/javascript/monster/-/issues/291
const
lazyLoadFlag
=
this
.
getOption
(
"
features.lazyLoad
"
)
&&
this
[
lazyLoadDoneSymbol
]
!==
true
;
let
remoteFilterFlag
=
getFilterMode
.
call
(
this
)
===
FILTER_MODE_REMOTE
;
if
(
lazyLoadFlag
||
remoteFilterFlag
)
{
lookupSelection
.
call
(
self
);
}
return
new
Processing
(()
=>
{
return
new
Processing
(()
=>
{
const
CLASSNAME
=
"
selected
"
;
const
CLASSNAME
=
"
selected
"
;
...
...
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