Hint is not working well with btn which opens a popup

Please have a look at this snippet
https://snippet.webix.com/lbph9ooh
Clicking on button opens a popup and hint also should move one step further as eventEl is that button but the hint is stuck there and clicking on next would make jump two steps not one.

p.s - I'm using webix 5.2

Tagged:

Comments

  • Hello @shahidkamal ,

    To make this sample work correctly you need to remove ui.window from ui.form and create a separate webix.ui with ui.window like this:

    webix.ui({
      view:"window",
      id:"win",
     ...
    });
    
    webix.ui({
      rows:[
        view: "form",
          elements: [
            {
              id: "elbtn",
              view: "button",
              label: "tat",
              click: ()=>{
                 $$('win').show();
               }
            }
          ]
        }
    

    Also, you need to set the next property in the step configuration.

    steps: [
        {
           el: "elbtn",
            ...
            next:function(){
              $$('win').show();
            },
       }
    ...
    ]
    

    Please check the sample: https://snippet.webix.com/b24uc7d4

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!