Materialize-stepper icon indicating copy to clipboard operation
Materialize-stepper copied to clipboard

Issues with horizontal stepper

Open ermarkar opened this issue 6 years ago • 5 comments

HTML Code

<ul class="stepper horizontal" #contentTypeStepper style="min-height:458px">
    <li class="step active">
        <div class="step-title">Step 1</div>
        <div class="step-content">
            <p>
                Step 1 Data
            </p>
            <!-- Your step content goes here (like inputs or so) -->
            <div class="step-actions">
                <!-- Here goes your actions buttons -->
                <button class="waves-effect waves-dark btn next-step">CONTINUE</button>
            </div>
        </div>
    </li>
    <li class="step">
        <div class="step-title">Step 2</div>
        <div class="step-content">
            <p>
                Step 2 Data
            </p>
            <!-- Your step content goes here (like inputs or so) -->
            <div class="step-actions">
                <!-- Here goes your actions buttons -->
                <button class="waves-effect waves-dark btn previous-step">CONTINUE</button>
            </div>
        </div>
    </li>
</ul>

and in ts file

this.iContentTypeStepper = new MStepper(this.contentTypeStepper.nativeElement, {
            firstActive: 0 // this is the default
});

but this is not working properly.

stepper1

And on click of Step1 it changes to

stepper2

Issues

  1. It is showing 2 in the first step
  2. I am not able to click on any step now

ermarkar avatar Jun 25 '19 06:06 ermarkar

Could you please provide a jsfiddle or something? I couldn't reproduce the bug and it's working well on the docs: https://kinark.github.io/Materialize-stepper/#demos_horizontal

Kinark avatar Jul 04 '19 14:07 Kinark

Hi, try removing waves-effect waves-dark classes from buttons.

ermarkar avatar Jul 10 '19 06:07 ermarkar

Hi, I have the same problem, this is my codes.

`html*>

    

    

    

Document

​ <link rel="stylesheet" href="./css/mstepper.min.css">

​ <ul class="stepper horizontal demos" id="horizontal" >

​ <li class="step">

                   

Step 1

                   

                      

                         

​ <input id="horizontal_email" name="horizontal_email" type="email" class="validate" required>

​ <label for="horizontal_email">Your e-mail

                      

​ <button class="btn blue next-step">CONTINUE

​ <li class="step">

                   

Step 2

                   

                      

                         

​ <input id="horizontal_password" name="horizontal_password" type="password" class="validate" required>

​ <label for="horizontal_password">Your password

                      

​ <button class="btn blue next-step" data-feedback="someFunction">CONTINUE

​ <button class="btn-flat previous-step">BACK

​ <li class="step">

                   

Step 3

                   

​ Finish!

                      

​ <button class="btn blue" type="submit">SUBMIT

`

And the effect I'm showing is:

![image-20190909230430223](/Users/mqs/Library/Application Support/typora-user-images/image-20190909230430223.png)

Can you show me your codes? Thinks

MQS520 avatar Sep 09 '19 15:09 MQS520

It works after adding materialize.css

josephwaiguru avatar Jan 15 '21 08:01 josephwaiguru

it worked for me

ul.stepper.horizontal .step .step-title {
    position: relative;
}

mustafabeyazbulut avatar Oct 09 '23 21:10 mustafabeyazbulut