This commit is contained in:
2025-07-14 18:22:02 +00:00
parent 6e29f0b51a
commit f9d281c496
2 changed files with 7 additions and 6 deletions

View File

@@ -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();
}