Comments (3)
Does the template you're rendering as part of the unprocessable_entity
response include a <turbo-frame>
element with an [id]
attribute that matches the one that contains the <form>
element?
from turbo.
Does the template you're rendering as part of the
unprocessable_entity
response include a<turbo-frame>
element with an[id]
attribute that matches the one that contains the<form>
element?
Yes, they both have <turbo-frame>
tags that use the same id.
from turbo.
@culov I can only comment here from a Django perspective. I have a similar setup (Modal triggered by a Stimulus controller). Django returns a 200 on Validation Errors so I want my frame replaced by the response (the returned Form with errors). In case of a successful submission I get a 303 from Django (which I catch in the turbo:submit-end
as well) and close my modal then as well (or perform a global redirect with Turbo.visit()
).
Wouldnt something like that work? But I know that Rails handles the responses to Form submissions quite different...
from turbo.
Related Issues (20)
- No Limit on Cache Size
- Proposal: Rename `Vnd.Prefetch` header set when preloading links HOT 4
- Turbo frame contains busy and complete when navigating history HOT 2
- Regression from PR 240 around removing target children before append / prepend? HOT 4
- `broadcast_remove_to` conflicts with input field named "remove"
- Feature request: Allow specifying target element to insert form when using anchor with data-turbo-method
- Chrome crashes when a turbo frame response contains <form name="location"> HOT 6
- Proposal: Turbo Stream apply to Template Tags HOT 1
- turbo:beforeunload
- Unable to update input value with form.requestSubmit(), turbo:submit-end shows the correct value in the console for formElement but not if I access the element directly
- [dupe #577] FrameController.prepareRequest overrides Turbo-Frame header, ignoring explicit data-turbo-frame HOT 2
- data-turbo-temporary="false" should be skipped HOT 1
- Turbo frames does not respect turbo-root with form submit
- After redirect, eager-loading frame contents are requested with incorrect HTTP referrer HOT 1
- Turbo.Drive: Requiring Confirmation for a Visit not working? HOT 1
- Documentation: Navigating with forms HOT 2
- Script only execute when page reload HOT 3
- https://turbo.hotwired.dev/handbook/drive#ensuring-specific-pages-trigger-a-full-reload
- Custom rendering is incompatible with caching HOT 1
- Proposal: autofocus attribute on turbo frames
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 turbo.