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] - Cannot update text for fw-button #887

Open
sabatale opened this issue Aug 10, 2023 · 1 comment
Open

[Bug] - Cannot update text for fw-button #887

sabatale opened this issue Aug 10, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@sabatale
Copy link

sabatale commented Aug 10, 2023

Component
fw-button (v4)

Describe the bug
More of a question, really. We could not find an event to update the button text.

When trying something simple such as document.getElementById("fw-button-id").textContent = "ABC"; or value = ... the new text is written outside of the button (most likely because it doesn't consider the spans generated by the fw-button).

To Reproduce
Steps to reproduce the current behavior:

document.getElementById("fw-button-id").textContent = "ABC";

Screenshots

image

@sabatale sabatale added the bug Something isn't working label Aug 10, 2023
@srivalli-sivaramasankaran
Copy link
Collaborator

@sabatale Please check the below code sandbox link to update the button text.
https://codesandbox.io/s/zen-newton-l9vlsk

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