Skip to content
This repository was archived by the owner on Aug 7, 2020. It is now read-only.

Conversation

@marie-j
Copy link
Contributor

@marie-j marie-j commented Apr 18, 2019

Add ability to set open step

Description of the Change

Add currentIndex as binding to be able to set open state

Benefits

To be able to switch between steps without user action

.addClass("oui-stepper")
);

this.$scope.$watch(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can avoid using $scope.$watch by using get/set of es6 :-)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried to but I get RangeError: Maximum call stack size exceeded (I suppose due to the fact that currentIndex is needed to be set elsewhere)

Copy link
Contributor

@AxelPeter AxelPeter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've almost missed it. The API table of the documentation is not updated.
No unit test ?

@marie-j marie-j force-pushed the feat/oui-step-form-opening branch from 33e70f3 to 6580a99 Compare April 18, 2019 19:42
@AxelPeter AxelPeter merged commit 1441a71 into develop Apr 19, 2019
@AxelPeter AxelPeter deleted the feat/oui-step-form-opening branch April 19, 2019 12:46
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Development

Successfully merging this pull request may close these issues.

5 participants