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

ArcTable search not working #339

Open
1 of 24 tasks
hafiz-arup opened this issue Dec 24, 2024 · 2 comments
Open
1 of 24 tasks

ArcTable search not working #339

hafiz-arup opened this issue Dec 24, 2024 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@hafiz-arup
Copy link

Detailed Description

I am using the basic example given in the Arc documentation but the search is not working.
A code example can be found here https://stackblitz.com/edit/vitejs-vite-yuatgrfw?file=src%2FApp.tsx

Components

  • accessibility
  • avatar
  • bottombar
  • button
  • card
  • checkbox
  • chip
  • container
  • drawer
  • dropdown
  • hero
  • icon
  • icon-button
  • image
  • menu
  • menu-item
  • navbar
  • radio
  • radio-group
  • sidebar
  • spinner
  • switch
  • table
  • tooltip

Steps to Reproduce

  1. Create a react vite (typescript) app
  2. Install arc using command npm install @arc-web/components@latest @arc-web/react@latest
  3. Copy paste the following code to setup an ArcTable
    `
    import React from "react";
    import { ArcTable, ArcContainer } from "@arc-web/react";

const SampleTable= () => {
const headers = ["Name", "Email", "Number"];

const rows = [
    ["John", "[email protected]", "(353) 01 222 3333"],
    ["Mark", "[email protected]", "(01) 22 888 4444"],
    ["Eoin", "[email protected]", "(05) 10 878 5554"],
    ["Nisen", "[email protected]", "313 333 1923"]
];

return (
    <ArcContainer>
        <ArcTable columns={headers} data={rows} search={true}></ArcTable>
    </ArcContainer>
);

};

export default SampleTable;
`

Expected Behaviour

The search should filter the result while I start typing

Actual Behaviour

Its doing nothing

Application Framework/Library

React 18.2.0

Arc Version

3.4.1

@hafiz-arup hafiz-arup added the bug Something isn't working label Dec 24, 2024
@dominicegginton dominicegginton self-assigned this Jan 1, 2025
@dominicegginton
Copy link
Collaborator

@hafiz-arup thank you for opening, this is being tracked in our backlog as ARC-80

@dominicegginton
Copy link
Collaborator

@hafiz-arup this has now been fixed with #349, however required breaking changes. We plan to release these changes in v4.0.0 asap. We will let you know once realsed.

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

No branches or pull requests

2 participants