nd0ut/semantic-ui-rails

Issues with hide/toggle of popup

Closed this issue · 0 comments

I am experiencing some issues regarding hiding the popup module, i am triggering the module using this code.

        $('.ui.action.input').popup({
          title: 'Newsletter'
          content: 'Subscribed'
          transition: 'fade'
          on: 'focus'
        }).popup('toggle')

This works perfectly, but then a want to hide it again after some time.

        setTimeout(function() {
          $('.ui.action.input').popup('toggle')
        }, 2000);

But nothing happens, i also tried to run the toggle directly in the console, nothing.

Can someone confirm this is a issue, or is it my machine which is messed up?