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

A Nav component should always display its text attribute, even if the nav item has been previously selected #315

Open
lizadaly opened this issue Jun 29, 2023 · 0 comments

Comments

@lizadaly
Copy link
Owner

lizadaly commented Jun 29, 2023

Because a Nav is a special case of Choice, once a Nav item is clicked it isn't possible to display it again with a different visible string.

Consider the following:

<Nav text="Go here..." tag="test" next="chapter2">

Then later in the story:

<Nav text="Go back..." tag="test" next="chapter2">

It's allowable to have multiple occurrences of Nav items, but because the choice is considered resolved, its text will not be displayed, and any future occurrence of a Nav of tag chapter2 will always display "Go here," and never "Go back." "Go back" would only appear if the early Nav instance remained unclicked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant