gocodebox / gocodebox/lifterlms

Block settings not displaying correctly with multiple blocks in the editor

Open
#2,874 0 comments 0 reactions 1 assignee Claimed by @ideadude View on GitHub
Dominant language
PHP
Stars
212
Forks
140
Avg merge
2d 14h
Merged PRs (30d)
19

Description

### Reproduction Steps
1. Navigate to your WordPress dashboard.
2. Edit a course page and add the Course Block at least 3 to see the difference.
3. Locate the "Show only my courses" setting in the Course Block settings.
4. Change the setting to "Cancelled" (or any other option).
5. Change another Course Block setting to "Expired" or "Any."
6. Return to the previous Course Block setting and observe the dropdown, it will display "No" instead of Cancelled.

### Expected Behavior

The previously selected setting (e.g., "Cancelled") should remain visible and not return to the default "No" in the dropdown when navigating back to the Course Block.

### Actual Behavior

The dropdown reverts to "No" instead of displaying the previously selected value.

Despite this, the correct setting is applied on the front-end.

Occasionally, the back-end also displays the correct setting, but the issue persists inconsistently.

This issue has be recreated:
+ [ ] Locally
+ [ ] On a staging site
+ [ ] On a production website
+ [ ] With only LifterLMS and a default theme

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.