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

Commit ea1eefa

Browse files
fix(#81): slide attributes should be persisted on create too (gif slide src)
1 parent 33f8dda commit ea1eefa

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

studio/src/app/handlers/editor/events/deck/deck-events.handler.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,12 @@ export class DeckEventsHandler {
214214
slidePost.content = content
215215
}
216216

217+
const attributes: SlideAttributes = await this.getSlideAttributes(slide);
218+
219+
if (attributes && Object.keys(attributes).length > 0) {
220+
slidePost.attributes = attributes;
221+
}
222+
217223
const persistedSlide: Slide = await this.slideService.post(deck.id, slidePost);
218224

219225
if (persistedSlide && persistedSlide.id) {

webcomponents/core/src/components/slides/deckdeckgo-slide-gif/deckdeckgo-slide-gif.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ export class DeckdeckgoSlideGif implements DeckdeckgoSlide {
1414

1515
@Event() slideDidLoad: EventEmitter<void>;
1616

17-
@Prop() src: string;
18-
@Prop() alt: string;
17+
@Prop({reflectToAttr: true}) src: string;
18+
@Prop({reflectToAttr: true}) alt: string;
1919

2020
@Prop() fullscreen: boolean = true;
2121

0 commit comments

Comments
 (0)