Skip to content

*asSplitGutter targets wrong as-split #517

Closed

Description

@PraiseDuck
<div style="height: 400px;">
  <as-split direction="horizontal">
    <as-split-area size="40">
      <as-split direction="vertical">
        <div *asSplitGutter>
          <span asSplitGutterDragHandle class="custom-gutter">Test</span>
        </div>
        <as-split-area>
          <div class="bg"></div>
        </as-split-area>
        <as-split-area>
          <div class="bg"></div>
        </as-split-area>
      </as-split>
    </as-split-area>
    <as-split-area size="60">
      <as-split-area size="25">
        <div class="bg"></div>
      </as-split-area>
      <as-split-area size="75">
        <div class="bg"></div>
      </as-split-area>
    </as-split-area>
  </as-split>
</div>

Image

I dont want the right drag handle to adapt the custom template. Not sure if this is a bug. I did not find any similar issue. Sorry for the code, I fail to undertand how to escape html tags in this editor

Activity

  1. changed the title [-]*asSplitGutter targets wrong split-area[/-] [+]*asSplitGutter targets wrong as-split[/+] on Jun 30, 2025
  2. Harpush commented on Jun 30, 2025

    @Harpush
    Collaborator

    First for code you should do:
    ```html
    Code here
    ```
    Second I fail to understand the problem... Can you be more specific what you expect and what actually happens?

  3. PraiseDuck commented on Jun 30, 2025

    @PraiseDuck
    Author

    Of course, I want only the left handle to use the custom template. When pasting the template in the inner <as-split> I expect it to only apply to the <as-split> it is used in, not bubble into upper <as-split>. In other words, the right drag handle should stay default. My problem is that I did not find a way how to achieve this.

    <div style="height: 400px;">
      <as-split direction="horizontal">
        <div *asSplitGutter>
          <span asSplitGutterDragHandle class="custom-gutter">Test</span>
        </div>
        <as-split-area size="40">
          <as-split direction="vertical">
            
            <as-split-area>
              <div class="bg"></div>
            </as-split-area>
            <as-split-area>
              <div class="bg"></div>
            </as-split-area>
          </as-split>
        </as-split-area>
        <as-split-area size="60">
          <as-split-area size="25">
            <div class="bg"></div>
          </as-split-area>
          <as-split-area size="75">
            <div class="bg"></div>
          </as-split-area>
        </as-split-area>
      </as-split>
    </div>

    Image

    When setting the custom template in the upper <as-split> it only applies to the top level drag handler.

  4. Harpush commented on Jun 30, 2025

    @Harpush
    Collaborator

    Ah I understand now. Seems the gutter query is including descendants. Might be a good idea to flip it to false.

  5. PraiseDuck commented on Jul 1, 2025

    @PraiseDuck
    Author

    Nice, does this mean this issue gets addressed? I dont know how issues are resolved here and how fast, since this is my first request on GitHub 👉 👈

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions