-
Notifications
You must be signed in to change notification settings - Fork 91
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
DOMException: Failed to execute 'transaction' on 'IDBDatabase' #329
Comments
Interesting. I assume the workaround is to use the same Also yes, you're right, this doesn't affect functionality. It's just a logged error; FWIW the error message in Firefox is:
|
Hi, I have the same issue, using Turbo in Rails application for chat. picker is part of the form and is being refreshed when I submit the form. I would get the same message in console. |
@pruzicka This is just a warning message and you may safely ignore it. Although it indicates that the picker element is probably not being removed from the DOM / unloaded before a query is being executed on it. Do you have a minimal repro test case? |
It has to do something how the Turbo handle things. When I put it on the page just once and mess with the rest of the page with Turbo frames life is good. But as soon as I put it to one of the Turbo frames, replace it, change it, update it with the rest of the HTML, I got the message. I've tried to delay the initialisation, without success
|
I was able to solve for this by assigning the initialized Picker to a window global. This way the Picker isn't reinitialzed on turbo-frame refreshes.
|
If you remove an existing
<emoji-picker>
element and append a new one in the same tick, this error is logged to the console:I'm encountering this in the real world using Turbo – my
<emoji-picker>
element is inside an element marked withdata-turbo-permanent
, so it is effectively removed, cloned and re-added to the page on navigation, causing this error.Doesn't seem to impact functionality as far as I can tell.
Minimal reproduction: https://jsbin.com/seyocoyeqa/edit?html,output
The text was updated successfully, but these errors were encountered: