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

Framework: _loopStyle must be explicitly set #62

Closed
swashbuck opened this issue Apr 22, 2024 · 2 comments · Fixed by #63
Closed

Framework: _loopStyle must be explicitly set #62

swashbuck opened this issue Apr 22, 2024 · 2 comments · Fixed by #63
Assignees
Labels
bug Something isn't working released

Comments

@swashbuck
Copy link
Contributor

swashbuck commented Apr 22, 2024

Subject of the issue

The README.md states that _loopStyle defaults to 'none'. In fact, if it's not set, it does not default to anything and the next/previous buttons are not shown at all. I would suggest that we default _loopStyle to 'none' if not set in the JSON.

if (!loopStyle) return [];

Also, the siblings option has recently been removed from the plugin. This should be removed from example.json and README.md for _loopStyleComment.

Your environment

  • Version: Framework (not AAT)
  • Page Nav: 3.1.1

Steps to reproduce

In a framework project (not AAT):

  1. In the standard p101 that has a co-100 and co-200, add a Page Nav component to the first (co-100) topic.
  2. Enable the _root and _next buttons.
  3. Set _loopStyle to 'none' which should be the default.
  4. Observe that the Next button is visible
  5. Now, remove the _loopStyle line entirely from the Page Nav component config.
  6. Observe that only the Main Menu button remains.
@oliverfoster
Copy link
Member

These lines should not have been removed:

7c8d863#diff-6c2ae9233aadf60cb19e106cb2fdffa44f13ef7e5d14e95b1ff2e666f791ae78L179-L181

Siblings buttons and siblings looping are different behaviours with the same subject.

@swashbuck swashbuck assigned swashbuck and oliverfoster and unassigned swashbuck Apr 23, 2024
github-actions bot pushed a commit that referenced this issue Apr 23, 2024
## [3.1.2](v3.1.1...v3.1.2) (2024-04-23)

### Fix

* _loopStyle bad configuration (fixes #62) ([0f07262](0f07262)), closes [#62](#62)
* _loopStyle bad configuration (fixes #62) ([212a942](212a942)), closes [#62](#62)
Copy link

🎉 This issue has been resolved in version 3.1.2 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working released
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants