Skip to content

Conversation

skyboyer
Copy link
Contributor

Fixes #3476 : data-notes worked on fragment level, but not at slide level

@@ -146,7 +146,7 @@ const Plugin = () => {
}

// Look for notes defined in an aside element
if( notesElements ) {
if( notesElements && notesElements.length ) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

notesElements is either null(if there is .current-fragment) or a list of elements(result of slideElement.querySelectorAll( 'aside.notes' )).

So if we have a slide:

  1. without fragments at all(so no .current-fragment)
  2. with notes specified through data-notes

We did never see the notes because condition if( notesElements ) was always true even though list was empty

@hakimel hakimel merged commit eb01f8f into hakimel:master Sep 19, 2023
@hakimel
Copy link
Owner

hakimel commented Sep 19, 2023

Good catch. Thanks for the fix.

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

Successfully merging this pull request may close these issues.

Notes plugin: data-note does not work on slide-level
2 participants