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

Fixed JQuery clone problem. #236

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Fixed JQuery clone problem. #236

wants to merge 1 commit into from

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