question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

NbStep ignoring [completed] when the next step is clicked

See original GitHub issue

Issue type

I’m submitting a …

  • bug report
  • feature request

Issue description

When passing the parameter completed to NbStep (<nb-step [completed]="false"></nb-step>, the step is marked as completed when another step is selected by clicking on the step number, even if the value of competed is false.

Expected behavior:

When passing the value of completed the step should be set as completed only if the value is true.

Steps to reproduce:

  • Create a stepper with at lease to steps;
  • Set completed to false for the first step.
  • Click on the second step.
  • Notice that the first step is marked as completed.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
geminscommented, May 8, 2020

i made this fix: <nb-step label=“Titulo” [completed]=“indirectTasksHasCompleted()” [stepControl]=“{valid: indirectTasksHasCompleted(), reset: null}”>

Create a inline object with key valid and reset.

2reactions
geminscommented, Apr 3, 2020

Hello i have the same problem, an example: <nb-step label=“Stock” [completed]=“stockValid”></nb-step>

let stockValid = false;

never change this variable, but if i change to the next or another step, this step “Stock” is checked like a complete the same way.

Please can fix that?

Thanksyou

Read more comments on GitHub >

github_iconTop Results From Across the Web

Angular Material Stepper component prevent going to all the ...
I want to prevent the user from visiting the next steps by clicking the step buttons of the stepper component. However, I want...
Read more >
GemStone/S 64 Bit Topaz User's Guide - Index of
The second step takes you to the point where _validateClass: is about to be sent to aCharacter. ... and argument are equal ignoring...
Read more >
xdesign - UNPKG
\"throw\" : \"next\"]) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, ... __decorate([\n Component({\n selector: 'nb-step',\n template: ...
Read more >
SensoMineR: Sensory Data Analysis
The formul parameter can be filled in for a given analysis of variance model. ... If 0, the tree is cut at the...
Read more >
Avoiding cold starts on AWS Lambda for a long-running API ...
N.b. step 4 always happen whenever you invoke a lambda function (it's ... to run the NLP and return the results in a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found