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

Slot for name="complete" doesn't work #77

Open
w-A-L-L-e opened this issue Oct 3, 2023 · 4 comments
Open

Slot for name="complete" doesn't work #77

w-A-L-L-e opened this issue Oct 3, 2023 · 4 comments

Comments

@w-A-L-L-e
Copy link

w-A-L-L-e commented Oct 3, 2023

I want to override the text when the complete slot is rendered. However when I add my named slot like so it's still showing the original text.
Also it would be nice to add a css class to this slot then you can opt to hide it with display:none.
Right now as workaround I'm hiding the unwanted text by placing a div over it using some trickery with a div that has negative margin-top.

    <InfiniteLoading @infinite="load_more_matches">
      <slot name="complete">THIS DOES NOT WORK</slot>
    </InfiniteLoading>
    
    <div class="hide-completed-message"/>
@teisnet
Copy link

teisnet commented Oct 4, 2023

Same Issue here. It was working in version 1.2.2.

<InfiniteLoading class="loader-message" @infinite="load" top distance=0 target=".log-list">
   <template #complete>End of log entries</template>
   <template #error>Error loading log</template>
</InfiniteLoading>

@teisnet
Copy link

teisnet commented Oct 4, 2023

DOM comparison:
Version 1.2.2:
infinite-1 2 2

Version 1.3.1:
infinite-1 3 1

@Sakthi002
Copy link

Any solution for this?

@hardik-baraiya-123456
Copy link

hardik-baraiya-123456 commented May 24, 2024

in vue 3

 <InfiniteLoading @infinite="load">
          <template #complete><div></div></template>
        </InfiniteLoading>

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

4 participants