Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue when using dynamic-image layout #4

Open
szEvEz opened this issue Oct 21, 2021 · 1 comment
Open

Issue when using dynamic-image layout #4

szEvEz opened this issue Oct 21, 2021 · 1 comment

Comments

@szEvEz
Copy link

szEvEz commented Oct 21, 2021

I've run into an issue with the dynamic-image layout, where the slides in the browser are not updated correctly.

Steps to reproduce:

  • Start slidev npm run dev
  • head to the slides in the browser
  • Slide 2 (http://localhost:3030/2) displays "Test"
  • Navigate to Slide 3 (http://localhost:3030/3) by using the arrow keys does not update the slide, just the url
  • Reloading the side displays the correct slide "Testing"

These are my slides:

---
title: sometitle
theme: light-icons
layout: intro
highlighter: shiki
image: 'https://source.unsplash.com/collection/94734566/1920x1080'
---

# My Cool Intro

---
layout: dynamic-image
image: https://source.unsplash.com/collection/94734566/1920x1080
equal: false
left: false
---

# Test

---
layout: image-right
image: https://source.unsplash.com/collection/94734566/1920x1080
equal: false
left: false
---

# Testing

I just encountered this when using layout: dynamic-image

htharoldht added a commit to htharoldht/slidev-theme-light-icons that referenced this issue May 22, 2022
Fix the bug that the page does not update after using this layout
htharoldht added a commit to htharoldht/slidev-theme-light-icons that referenced this issue Aug 10, 2022
@asm0dey
Copy link

asm0dey commented Nov 15, 2023

I also hit this bug, could you fix please?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants