Comments (2)
Ahhh yes! this a known issue! This on the todo-list to get fixed. The temporary workaround is once youve added the data-remote
link to the dom, call mrujs.restart()
this will re-run all queries.
The real reason this happens is i havent gotten around to MutationObservers
for everything! The reason forms still work is because form submit
events get intercepted at the document level. With links, theres no document level event to hook into.
TLDR: Im working on it, in the meantime, anytime you add a data-remote
link, restart mrujs like so:
window.mrujs.restart()
from mrujs.
Thanks @ParamagicDev , glad it's a known thing! I confirmed mrujs.restart()
does fix it so I'll use that as a workaround for now.
from mrujs.
Related Issues (20)
- Add `only` and `except` keywords to `start()` to allow users to pick and choose what they want to use.
- Submitter is borked on Safari 15
- Type declarations aren't being emitted HOT 1
- (data-disable-with ) not working on form submit buttons HOT 1
- there was an error with mrujs.confirm HOT 6
- Enhancement of Mrujs in relation to Turbo
- Move turbo-specific code into Turbo plugin.
- Build a `data-ujs-confirm` similar to Sean's example
- Buttons should be able to define formmethod and formaction HOT 1
- Add Sean's glue code into Mrujs
- Document best practices for forms / buttons / etc
- Typescript type definition problem with `mrujs.start()` HOT 2
- Dispatching a "submit" event without detail: {} raises an error. HOT 4
- Is it possible to use mrujs without Turbo ? HOT 1
- Confirm:complete doesn't always fire on cancellation
- Cannot find module 'mrujs/plugins' or its corresponding type declarations. HOT 2
- mrujs website flashes when loading HOT 1
- Test issue HOT 1
- Add configuration option to disable DOM morphing HOT 7
- mrujs with importmap HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mrujs.