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

JS for accordion is missing from library #124

Open
bluzky opened this issue Jan 8, 2025 · 0 comments
Open

JS for accordion is missing from library #124

bluzky opened this issue Jan 8, 2025 · 0 comments

Comments

@bluzky
Copy link
Owner

bluzky commented Jan 8, 2025

          Thanks so much for this! I'm a little surprised I had to manually add the JS since it looks like it was merged a few months ago:
const liveSocket = new LiveSocket('/live', Socket, {
  ...
  dom: {
    onBeforeElUpdated: (fromEl: HTMLElement, toEl: HTMLElement) => {
      if (fromEl.hasAttribute('open')) {
        toEl.setAttribute('open', '')
      }
      return true
    }
  }
})

I'm on version 0.14. Did I miss an install step or something?

Originally posted by @enoonan in #59 (comment)

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

1 participant