Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot "remove" popup #760

Closed
josephduchesne opened this issue Apr 2, 2014 · 5 comments
Closed

Cannot "remove" popup #760

josephduchesne opened this issue Apr 2, 2014 · 5 comments

Comments

@josephduchesne
Copy link

This is a re-creation of #490 which was closed because the original author did not provide a test case. I have provided one.

$('.ui.button').popup('remove');

Remove not seem to do anything. The popup still appears.

Test case:
http://jsfiddle.net/uB8Lk/

@jlukic
Copy link
Member

jlukic commented Apr 3, 2014

Hi, check out this fiddle:
http://jsfiddle.net/D58Ju/1/

$('.ui.button').popup('destroy');

removes all events and disables the popup

Calling

$('.ui.button').popup('remove');

will remove the popup from the DOM when you use $('.ui.button').popup({preserve: true});

@jlukic jlukic closed this as completed Apr 3, 2014
@yowainwright
Copy link

Thanks @jlukic, worked for me.

@chikamichi
Copy link

@jlukic thank you; this is not documented on the website, it could be added :)

@listaction
Copy link

the event is still attached to the element @jlukic ... destroy should remove the the event from the element.

$._data($(el)[0], "events").click // tells you

@prasad-fv
Copy link

Doesn't work with on:'click' settings.

http://jsfiddle.net/zxwyw4cr/1/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants