Skip to content
Discussion options

You must be logged in to vote

Have you add the else condition as well?

editor.on('component:selected',(component)=>{
    if(component.isInstanceOf('Testing') ){
        editor.Selectors.setComponentFirst(false)
    }else{
        editor.Selectors.setComponentFirst(true)
    }
})

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@Ananthumpillai
Comment options

@glaprida
Comment options

Answer selected by Ananthumpillai
@Ananthumpillai
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants