Skip to content

[Popup] Preserve Should Be Set to False by Default #1369

Closed
@Arkni

Description

ISSUE 1

when trying to remove the Popup definitely, that's not working for me and the popup still here.
Here is a fiddle that shows the isssue.
I found an old issue about that, this comment of one of the owners said that :
Calling

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

will remove the popup from the DOM when you use

$('.ui.button').popup({preserve: true});

But sadly, doesn't work for me :(
What is the right way to definitely remove the popup from the DOM ?

ISSUE 2

Please check this fiddle
For the first time, there is only one popup added to the DOM.
The destroy button is for destroying the popup
According to the same comment , this

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

removes all events and disables the popup that's ok, but when you click again on the destroy button this will add a new popup to the DOM.

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions