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

[Bug]: feedbackTimeout doesn't work #16811

Open
2 tasks done
mabubaker1947 opened this issue Jun 18, 2024 · 2 comments
Open
2 tasks done

[Bug]: feedbackTimeout doesn't work #16811

mabubaker1947 opened this issue Jun 18, 2024 · 2 comments

Comments

@mabubaker1947
Copy link

Package

@carbon/react

Browser

Chrome

Package version

v1.59.0

React version

v18.3.1

Description

Hi I am using the with feedbackTimeout={2000} which indeed is a default value. However, the feedback text doesn't goes away under the copy button on the UI. See below. Please note that the feedback is not shown on the tootip as in your playground. But it only is written down underneath the copy button. Which is okay, but it should go away after the feedback timeout.
Screenshot 2024-06-18 at 12 14 42 p m

Reproduction/example

Please see steps below.

Steps to reproduce

import copy from "copy-to-clipboard";
import { CopyButton } from "@carbon/react";

              <Col>
                <CopyButton
                  feedback="Copied!"
                  align="top-right"
                  feedbackTimeout={2000}
                  iconDescription=""
                  onClick={() => copy(configMap)}
                />
              </Col>

Suggested Severity

Severity 1 = Must be fixed ASAP. The response must be swift. Someone from the team must drop all current work and be immediately reassigned to address the issue.

Application/PAL

IBM's internal app.

Code of Conduct

@preetibansalui
Copy link
Contributor

Hey @mabubaker1947, could you please reproduce your issue in a sandbox environment? We have a repository containing pre-configured sandboxes for different versions of @carbon/react. Please use the sandbox that matches the version you're experiencing the issue with. This will help us better understand and debug the problem you're facing. Let me know if you need any assistance with setting up the sandbox.

@mabubaker1947
Copy link
Author

Hi @preetibansalui I use one of the sandboxes where I just reprdocued the issue. Now even the feedback text is not dispalayed. See screenshot below and the llink to the current state of the sandbox is here.
Screenshot 2024-06-25 at 4 34 40 p m

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: ⏱ Backlog
Development

No branches or pull requests

4 participants