Skip to content
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

add hx-swap ignore #89

Closed
ssendev opened this issue Jun 10, 2020 · 3 comments
Closed

add hx-swap ignore #89

ssendev opened this issue Jun 10, 2020 · 3 comments

Comments

@ssendev
Copy link
Contributor

ssendev commented Jun 10, 2020

In #88 I also had the problem that the focus is lost (#75).

For now I worked around it with a target that has display: none which makes the changes invisible but adding a hx-swap="ignore" option could make implementing actions that don't change the html easier.

@1cg
Copy link
Contributor

1cg commented Jun 10, 2020

another great idea

1cg pushed a commit that referenced this issue Jun 11, 2020
@1cg
Copy link
Contributor

1cg commented Jun 11, 2020

fixed with 4ef719e

@1cg 1cg closed this as completed Jun 11, 2020
@ribeiropaulor
Copy link
Contributor

ribeiropaulor commented Apr 17, 2021

Hi, @1cg !

hx-swap="none" does not appear on the docs: https://htmx.org/attributes/hx-swap/ . I can see that the pull request included the docs modification. It somehow got lost.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants