Skip to content
This repository has been archived by the owner on Feb 9, 2024. It is now read-only.

Commit

Permalink
84242ba
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed May 17, 2023
1 parent c829202 commit 9695c30
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 14 deletions.
6 changes: 6 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog for Weavy

## v17.0.2

<time>2023-05-17</time>

* Fixed some issues for HTML styling of apps in uikit-js via *custom elements*.

## v17.0.1

<time>2023-05-16</time>
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@weavy/dropin-js",
"version": "17.0.1",
"version": "17.0.2",
"author": "Weavy",
"description": "Javascript library for the Weavy drop-in UI",
"homepage": "https://github.com/weavy/weavy-dropin-js",
Expand Down
21 changes: 10 additions & 11 deletions src/components/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -297,15 +297,12 @@ export default class WeavyApp extends MixinWeavyEvents(HTMLElement) {
this.data = data;
}

if (this.options.load === false) {
this.autoLoad = false;
}

this.className = this.options.className || "";

this.#styles = new WeavyStyles(this);
this.#styles.eventParent = this;
this.#styles.css = this.options.css || "";

if (this.options.styles !== undefined) {
this.#styles.css = this.options.css;
}

this.#styles.on("styles-update", async () => {
await this.whenBuilt();
Expand Down Expand Up @@ -349,8 +346,6 @@ export default class WeavyApp extends MixinWeavyEvents(HTMLElement) {
true
);

this.className = this.options.className || "";

this.environment.on("history-restore", (state) => {
console.log("history-restore", state);
this.openBrowserState(state);
Expand Down Expand Up @@ -399,8 +394,12 @@ export default class WeavyApp extends MixinWeavyEvents(HTMLElement) {
}

if (this.options && typeof this.options === "object") {
if (this.container === null) {
this.container = this.options.container;
if (this.options.load === false) {
this.autoLoad = false;
}

if (this.options.className !== undefined) {
this.className = this.options.className;
}

if (this.uid === null && this.options.uid) {
Expand Down

0 comments on commit 9695c30

Please sign in to comment.