Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
4
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
widgets
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Test Cases
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
energenious-open-source
widgets
Commits
83c884e6
Commit
83c884e6
authored
Sep 18, 2020
by
Lukasz Starosta
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Render only once with proper state
parent
ecac8737
Pipeline
#191643238
passed with stages
in 6 minutes and 26 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
6 deletions
+4
-6
lib/package-lock.json
lib/package-lock.json
+1
-1
lib/package.json
lib/package.json
+1
-1
lib/src/embeddable-widget.tsx
lib/src/embeddable-widget.tsx
+2
-4
No files found.
lib/package-lock.json
View file @
83c884e6
{
"name": "@tecnojest/widget-base",
"version": "1.4.4
1
",
"version": "1.4.4
2
",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
...
...
lib/package.json
View file @
83c884e6
{
"name"
:
"@tecnojest/widget-base"
,
"author"
:
"Tecnojest srl https://www.invidea.it"
,
"version"
:
"1.4.4
1
"
,
"version"
:
"1.4.4
2
"
,
"publishConfig"
:
{
"registry"
:
"https://npm.invidea.it"
},
...
...
lib/src/embeddable-widget.tsx
View file @
83c884e6
...
...
@@ -168,9 +168,8 @@ export default class EmbeddableWidget {
}
}
if (remount)
{
EmbeddableWidget
.
Engine
.
render
(
component
,
el
);
}
// Render at the end after the proper state is in the widget
EmbeddableWidget.Engine.render(component, el);
}
static getOptions(): Partial
<
Options
>
{
...
...
@@ -473,7 +472,6 @@ export default class EmbeddableWidget {
});
}
EmbeddableWidget
.
Engine
.
render
(
component
,
el
);
if
(
Footer
)
el
.
appendChild
(
Footer
);
if
(
Tooltip
)
el
.
appendChild
(
Tooltip
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment