Skip to content

Commit 1b4a522

Browse files
authored
Merge pull request #150 from Gustavinho/bug/with-alpine3-inline-editing-is-reseting-the-value
Bug/with alpine3 inline editing is reseting the value
2 parents 30d85ae + 0c05a8c commit 1b4a522

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

doc/laravel-views.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
- [Components customization](#components-customization)
1818
- [Component variants using tailwindcss](#component-variants-using-tailwindcss)
1919
- [Components full customization](#components-full-customization)
20-
- [Table view](doc/table-view.md)
21-
- [Grid view](doc/grid-view.md)
20+
- [Table view](./table-view.md)
21+
- [Grid view](./grid-view.md)
2222

2323
# Version compatibility
2424
|Laravel views|Alpine|Livewire|Laravel|

resources/views/components/editable.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
x-model="value"
1818
@keydown.enter="$wire.update(id, {
1919
[field]: value
20-
}); editing = false;"
20+
}); editing = false; original = value"
2121
@keydown.escape="editing = false; value = original;"
2222
class="block appearance-none w-full bg-white border-gray-300 hover:border-gray-500 px-2 py-1 rounded focus:outline-none focus:bg-white focus:border-blue-600 focus:border-2 border">
2323
<div x-show="!editing"

0 commit comments

Comments
 (0)