Skip to content
This repository has been archived by the owner on Jun 27, 2024. It is now read-only.

Reset button not working when global search is in slots #101

Closed
grafxflow opened this issue Nov 1, 2022 · 3 comments
Closed

Reset button not working when global search is in slots #101

grafxflow opened this issue Nov 1, 2022 · 3 comments

Comments

@grafxflow
Copy link

grafxflow commented Nov 1, 2022

When I use the global search as a slot the reset button doesn't clear the global search slot input. Yet when using the global search on the table by default it does.

The only solution that gets close is below but this causes the input value to disappear for a split second while it refreshes the value from the url.

<template>
  <Table>
    <template v-slot:tableGlobalSearch="slotProps">
      <input
        placeholder="Custom Global Search Component..."
        @input="slotProps.onChange($event.target.value)"
        :value="slotProps.value"
      />
    </template>
  </Table>
</template>
@grafxflow
Copy link
Author

Is anybody else having the same issue?

@darkons
Copy link

darkons commented Nov 2, 2022

Related #97

@grafxflow
Copy link
Author

This isn't sorting the issue. Do I also need to move the reset button to a slot as well as the global search?

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

No branches or pull requests

2 participants