update
This commit is contained in:
@@ -8,11 +8,12 @@ import {
|
||||
css,
|
||||
unsafeCSS,
|
||||
state,
|
||||
PropertyValues,
|
||||
} from '@design.estate/dees-element';
|
||||
|
||||
// Import design tokens
|
||||
import { colors, bdTheme } from './00colors.js';
|
||||
import { spacing, radius, shadows, transitions } from './00tokens.js';
|
||||
import { bdTheme } from './00colors.js';
|
||||
import { spacing, radius, shadows } from './00tokens.js';
|
||||
import { fontFamilies } from './00fonts.js';
|
||||
|
||||
declare global {
|
||||
@@ -398,8 +399,8 @@ export class SioPdfViewer extends DeesElement {
|
||||
}
|
||||
}
|
||||
|
||||
protected async firstUpdated() {
|
||||
await super.firstUpdated();
|
||||
public async firstUpdated(_changedProperties: PropertyValues) {
|
||||
super.firstUpdated(_changedProperties);
|
||||
|
||||
// Set up resize observer for responsive rendering after first render
|
||||
const container = this.shadowRoot?.querySelector('.pdf-container');
|
||||
@@ -414,7 +415,7 @@ export class SioPdfViewer extends DeesElement {
|
||||
}
|
||||
|
||||
public async updated(changedProperties: Map<string | number | symbol, unknown>) {
|
||||
await super.updated(changedProperties);
|
||||
super.updated(changedProperties);
|
||||
if (changedProperties.has('url') && this.url) {
|
||||
await this.loadPdf();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user