VaibhavSaini19 / BootBlox

Ready-to-use Bootstrap CSS blocks
MIT License
26 stars 15 forks source link

View Code functionality doesn't persist while switching between blocks #51

Open VaibhavSaini19 opened 4 years ago

VaibhavSaini19 commented 4 years ago

🐛 Bug Report

When switching between different blocks, the view code changes back to preview, hiding the code and showing the block preview. The Copy Source Code and Select Device toggle is inverted due to this

Have you spent some time to check if this issue has been raised before?

Yes. Similar issue doesn't exist

To Reproduce

  1. Click on View Code
  2. Switch to a different block
  3. Switch to a different block again

The View Code automatically changes to Preview, and the block preview is shown instead of the code. But the Copy Source Code persists.

Expected behavior

When switching between blocks while Viewing Code, it should remain to View Code only, and not change back to Preview automatically