gocodebox / lifterlms-blocks

WordPress Editor (Gutenberg) blocks for LifterLMS.
4 stars 12 forks source link

Clicking "Launch Course Builder" with unsaved changes results in a confusing prompt #210

Open brianhogg opened 9 months ago

brianhogg commented 9 months ago

Reproduction Steps

  1. Edit a Course
  2. Make an edit to the course content
  3. Click "Launch Course Builder" at the top without saving

Expected Behavior

Helpful message saying you need to save changes before launching the course builder

Actual Behavior

Default "you have unsaved changes" prompt. If they click Ok by accident (to navigate away) their changes will not be saved.

This issue has been recreated:

brianhogg commented 7 months ago

There's a gutenberg bug that is blocking this, see closed PR for details: https://github.com/gocodebox/lifterlms-blocks/pull/211