Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Toolkit
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
digital blueprint
Web Component Framework
Toolkit
Commits
6c272c62
Commit
6c272c62
authored
5 years ago
by
David Jernej
Committed by
Reiter, Christoph
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Fix person select fetch problem due to jsonLD inits twice with presets
parent
8fec8e04
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
packages/person-select/src/vpu-person-select.js
+4
-3
4 additions, 3 deletions
packages/person-select/src/vpu-person-select.js
with
4 additions
and
3 deletions
packages/person-select/src/vpu-person-select.js
+
4
−
3
View file @
6c272c62
...
...
@@ -79,7 +79,7 @@ class PersonSelect extends VPULitElementJQuery {
});
}
initJSONLD
()
{
initJSONLD
(
ignorePreset
=
false
)
{
const
that
=
this
;
JSONLD
.
initialize
(
this
.
entryPointUrl
,
function
(
jsonld
)
{
...
...
@@ -88,7 +88,7 @@ class PersonSelect extends VPULitElementJQuery {
// we need to poll because maybe the user interface isn't loaded yet
// Note: we need to call initSelect2() in a different function so we can access "this" inside initSelect2()
commonUtils
.
pollFunc
(()
=>
{
return
that
.
initSelect2
();
},
10000
,
100
);
commonUtils
.
pollFunc
(()
=>
{
return
that
.
initSelect2
(
ignorePreset
);
},
10000
,
100
);
},
{},
this
.
lang
);
}
...
...
@@ -264,7 +264,8 @@ class PersonSelect extends VPULitElementJQuery {
this
.
ignoreValueUpdate
=
false
;
break
;
case
"
entryPointUrl
"
:
this
.
initJSONLD
();
// we don't need to preset the selector if the entry point url changes
this
.
initJSONLD
(
true
);
break
;
}
});
...
...
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