Closed nikos83 closed 10 months ago
Could you provide the full stack trace from the browser console?
Uncaught ReferenceError: Cannot access 'started' before initialization at start (application-b83775f799953add4a156c1fe73a91066cc5693c825701de487a163877d044db.js:56666:3) at application-b83775f799953add4a156c1fe73a91066cc5693c825701de487a163877d044db.js:4661:1 start @ application-b83775f799953add4a156c1fe73a91066cc5693c825701de487a163877d044db.js:56666 (anonymous) @ application-b83775f799953add4a156c1fe73a91066cc5693c825701de487a163877d044db.js:4661
function start() {
if (!started) {
started = true;
document.addEventListener("click", didClick, true);
document.addEventListener("submit", didSubmitForm, true);
document.addEventListener("ajax:before", didSubmitRemoteElement);
}
}
window.Turbo = Turbo;
start();
OK how come you think that this is a bug in RailsAdmin? It's because you're not defining the variable started
correctly, right?
I'm not sure what's wrong and where just started fresh project on rails 7.2.0.alpha application added few models and I got this on the Rails Admin panel. It maybe some kind of rails bug (alpha version) but noting else none of js has been changed...
I suggest you to ask help on StackOverflow, not here.
Describe the bug Rails admin is not fully functional I have Uncaught ReferenceError: Cannot access 'started' before initialization if I would like to click on datetime field or add new model.
Reproduction steps Install newest version rails with pg add rails_admin gem create few model with datetime try to open popup with date
Expected behavior Js should be load correctly
Additional context
rails
version: 7.2.0.alpharails_admin
version: 3.1.2rails_admin
npm package version: 9.7.2Add any other context about the problem here. package.json