Skip to content

makikata/demo-preline

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Demo Preline on Ruby on Rails 8.0

This is to demonstrate a Preline bug

Instructions to run on CodeSandbox

  1. Copy the repository

  2. Run the setup tasks

  3. Run in Tasks

    • Prepare database
    • build js and css OR watch:css and watch:js
    • Run rails server
  4. Open preview 3000 externally

  5. Click on the sidebar toggle button

  6. The sidebar works normally

  7. Click on any link, they are all pointing to "/"

  8. Turbo will replace the DOM with the new page

  9. Click on the sidebar toggle button

  10. The sidebar does not work anymore

Many issues point to adding this, (see for example)[htmlstreamofficial/preline#616 (comment)]

I know autoInit on turbo:load is the solution for DOM replacement, the issue is in the plugin itself.

I think I found where it happens, but not the root cause:

I hope this helps. Thank you for this great project! ❤️ <3

About

Preline demo with Rails 8 and postcss

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •