Skip to content

Fixed JQuery clone problem.#236

Open
Aleks4k wants to merge 1 commit intominhur:masterfrom
Aleks4k:master
Open

Fixed JQuery clone problem.#236
Aleks4k wants to merge 1 commit intominhur:masterfrom
Aleks4k:master

Conversation

@Aleks4k
Copy link

@Aleks4k Aleks4k commented Sep 11, 2023

If you've ever used .clone() in jQuery, you have encountered an issue where buttons become unresponsive after cloning. This occurs because the cloned element is already rendered, and that's what we need to address. To resolve this, we've implemented a check to determine if an element has already been rendered. If it has, we remove all elements added in the previous call to the .render() function and then proceed to render it once more.

If you've ever used .clone() in jQuery, you have encountered an issue where buttons become unresponsive after cloning. This occurs because the cloned element is already rendered, and that's what we need to address. To resolve this, we've implemented a check to determine if an element has already been rendered. If it has, we remove all elements added in the previous call to the .render() function and then proceed to render it once more.
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

Successfully merging this pull request may close these issues.

1 participant