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

Duplicate button #134

Closed
rockshell opened this issue Feb 21, 2024 · 4 comments · Fixed by #136
Closed

Duplicate button #134

rockshell opened this issue Feb 21, 2024 · 4 comments · Fixed by #136
Assignees
Labels

Comments

@rockshell
Copy link

Passed on from general support

We on a Rails application (version 7.0.8) with the gem uploadcare-rails (version 3.3.4) and we're facing a strange behavior with the uploadcare_uploader_field helper :

When I hit the back button of the browser, the page is rendered and the Document buttons appears twice.

I can't figure out why. Do you have any idea?

image
image

@vipulnsward vipulnsward self-assigned this Mar 10, 2024
@vipulnsward
Copy link
Collaborator

vipulnsward commented Mar 10, 2024

I can reproduce this and it seems like a turbo loading/caching issue. Checking for possible resolutions or if this is something the widget should handle

@vipulnsward
Copy link
Collaborator

@rockshell can you confirm if turbo or rails ujs is being used on this page?

@vipulnsward vipulnsward transferred this issue from uploadcare/uploadcare-ruby Mar 13, 2024
@vipulnsward
Copy link
Collaborator

Related bug- uploadcare/uploadcare-widget#328 (comment)

@vipulnsward
Copy link
Collaborator

vipulnsward commented Mar 29, 2024

Going to document the workaround on how others can handle this in their Apps for now

vipulnsward added a commit that referenced this issue Mar 30, 2024
vipulnsward added a commit that referenced this issue Mar 30, 2024
vipulnsward added a commit that referenced this issue Mar 30, 2024
vipulnsward added a commit that referenced this issue Mar 30, 2024
* Document know issue about turbolinks and hotwired caching and showing multiple file elements. Fixes #134

* Add example code to not use jquery so its simpler
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants