Prevent stacked, editable table columns to trigger wrapping a.href #15340
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Fixes: If you have your table columns stacked, and click on an editable column the outer
a.href
will be triggered and the record will open instead of editing the value of the column.Visual changes
None
Functional changes
The editable column becomes editable instead of only triggering the redirect.
Code style has been fixed by running the
composer cs
command.No, tried multiple times, still spaces are added that were not there before, sorry...
Changes have been tested to not break existing functionality.
yes,
Checkbox:
click.stop.prevent
was needed on the wrapping div. Elsea.href
is triggered ifAlpine.isLoading
istrue
Text input, Toogle and Select columns was enough with adding
.prevent
on the existingx-on:click.stop
-[X] Documentation is up-to-date.