-
Notifications
You must be signed in to change notification settings - Fork 415
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
Preserve input values in cache #70
Preserve input values in cache #70
Conversation
Several questions on this PR:
<input... data-turbolinks="false">
<form data-turbolinks="false">
<input ...>
</form> |
@tleish Very good questions. It looks like they've since reverted to
|
4f9d2d0
to
4fb04ab
Compare
@entretechno-jeremiah — FYI, a while back I created an addon library that addresses the above mentioned items. Embedding it into turbo is a much better. An embedded solution also simplifies the approach since the values do not need to be temporarily written to the dom in a data field for caching purposes. see: https://github.com/tleish/turbo-bfcache-form The unit tests in this lib might be helpful to consider various scenarios I ran into while creating the library. This library accomplished item 5 with if (element.closest('[data-turbo="false"]')) {
return false;
} |
…restored from cache
4fb04ab
to
d82b832
Compare
This was left sitting for a long time. If you're still interested, I'd like to see it rebased, so we can merge. |
@entretechno-jeremiah - are you able to rebase this? |
Hi there. Jeremiah doesn't work here anymore. I'm his former manager. Is
there something we can do to help?
…On Thu, Aug 4, 2022 at 12:35 PM tleish ***@***.***> wrote:
@entretechno-jeremiah <https://github.com/entretechno-jeremiah> - are you
able to rebase this?
—
Reply to this email directly, view it on GitHub
<#70 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AQQ4U26BCFKD2RIK6MWXUITVXP5ODANCNFSM4VSJ7XXA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
--
*Erin Rollenhagen* | (515) 318-5350 <5153185350>
CEO | Entrepreneurial Technologies Inc.
Author | Soul Uprising: It's Never Just Business
2135 NW 108th St, PO Box 71245 | Clive, IA 50325
***@***.*** | www.entretechno.com
*Need help?* Email ***@***.*** -- we're here for you!
|
I'm happy to pick this branch up and move it forward. |
Re-submission of hotwired#70 This change will save the values of `<input>`s, `<textarea>`s, and `<select>`s when creating a snapshot so that when you navigate back or forward in history, form fields will not be reset. This behavior was already present prior to [5dfc79e][] for `<input>`s and `<textarea>`s but not `<select>`s (see [turbolinks/turbolinks#238][]). [5dfc79e]: hotwired@5dfc79e [turbolinks/turbolinks#238]: turbolinks/turbolinks#238)
Re-submission of hotwired#70 This change will save the values of `<input>`s, `<textarea>`s, and `<select>`s when creating a snapshot so that when you navigate back or forward in history, form fields will not be reset. This behavior was already present prior to [5dfc79e][] for `<input>`s and `<textarea>`s but not `<select>`s (see [turbolinks/turbolinks#238][]). [5dfc79e]: hotwired@5dfc79e [turbolinks/turbolinks#238]: turbolinks/turbolinks#238
I've opened #666 to re-submit this changeset. It's rebased off the latest |
Re-submission of hotwired#70 This change will save the values of `<input>`s, `<textarea>`s, and `<select>`s when creating a snapshot so that when you navigate back or forward in history, form fields will not be reset. This behavior was already present prior to [5dfc79e][] for `<input>`s and `<textarea>`s but not `<select>`s (see [turbolinks/turbolinks#238][]). [5dfc79e]: hotwired@5dfc79e [turbolinks/turbolinks#238]: turbolinks/turbolinks#238
Re-submission of #70 This change will save the values of `<input>`s, `<textarea>`s, and `<select>`s when creating a snapshot so that when you navigate back or forward in history, form fields will not be reset. This behavior was already present prior to [5dfc79e][] for `<input>`s and `<textarea>`s but not `<select>`s (see [turbolinks/turbolinks#238][]). [5dfc79e]: 5dfc79e [turbolinks/turbolinks#238]: turbolinks/turbolinks#238 Co-authored-by: Jeremiah <jeremiah@entretechno.com>
This change will save the values of
<input>
s,<textarea>
s, and<select>
s when creating a snapshot so that when you navigate back or forward in history, form fields will not be reset.This behavior was already present prior to 5dfc79e for
<input>
s and<textarea>
s but not<select>
s (see turbolinks/turbolinks#238).