Skip to content

Commit

Permalink
fix: resetting form after request and not before
Browse files Browse the repository at this point in the history
  • Loading branch information
TayzenDev committed Nov 27, 2024
1 parent 1681122 commit 0b3e825
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ export const Index: FC<IndexProps> = (props: IndexProps) => {
hx-get="/?page=1"
hx-trigger="click"
hx-target=".articles-list"
hx-on--before-request="this.form.reset()"
hx-on--after-request="this.form.reset()"
>
&times;
</button>
Expand Down

0 comments on commit 0b3e825

Please sign in to comment.