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

Fix TypeError on null path variable #2966

Closed
wants to merge 10 commits into from

Conversation

youssame
Copy link
Contributor

Description

I check if the path is null or empty when the user hasn't set the action property or has left it empty.

Corresponding issue: #2963

Testing

I added two tests that check if everything is OK in two cases (action is unset or is empty)

Checklist

  • I have read the contribution guidelines
  • I have targeted this PR against the correct branch (master for website changes, dev for
    source changes)
  • This is either a bugfix, a documentation update, or a new feature that has been explicitly
    approved via an issue
  • I ran the test suite locally (npm run test) and verified that it succeeded

brackendawson and others added 9 commits October 4, 2024 09:26
* Clarify event filter uses in hx-trigger

* Change hx-trigger event filter example to avoid ambiguity

input is both a tag and an event.

* Document the scope difference between standard selector and event filter

from:input listens to the page and click[event.target.matches('input')] listens to the element.

* Document that event filters as an alternative to CSS selectors require eval

* Move note about eval to standard event filters section.

* Simplify the referenced to standard event filters in the standard event modifiers section, and link to the standard event filters section instead.

* End quote in the correct place in standard event modifier doc.

* Correct language on how event filters from:body receive events.

* hx-trigger filter example catches click events specifically.
@Telroshan Telroshan changed the base branch from master to dev October 15, 2024 07:02
@Telroshan Telroshan changed the base branch from dev to master October 15, 2024 07:04
@Telroshan
Copy link
Collaborator

Bruh this online-retarget never seems to work as it should
My bad, forgot to check the target branch before approving the code change.
@youssame could you rebase against dev for source code changes as per the contribution guidelines ? Thanks!

@Telroshan Telroshan added bug Something isn't working needs rebase/retarget labels Oct 15, 2024
@youssame youssame changed the base branch from master to dev October 15, 2024 08:58
@youssame youssame changed the base branch from dev to master October 15, 2024 08:58
@youssame youssame changed the base branch from master to dev October 15, 2024 09:02
@youssame youssame changed the base branch from dev to master October 15, 2024 09:03
@youssame youssame changed the base branch from master to dev October 15, 2024 09:09
@youssame
Copy link
Contributor Author

Bruh this online-retarget never seems to work as it should My bad, forgot to check the target branch before approving the code change. @youssame could you rebase against dev for source code changes as per the contribution guidelines ? Thanks!

My bad, done :)

@Telroshan
Copy link
Collaborator

Seems you'll want to rebase @youssame as the PR now brings a few unrelated commits in, making the diff harder to review

@youssame
Copy link
Contributor Author

I just created a new PR #2967 that will be easier I will close this one

@youssame youssame closed this Oct 15, 2024
@youssame
Copy link
Contributor Author

=> #2967

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs rebase/retarget
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants