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

cds-file custom buttonLabel resets to "Browse" on clearing files #258

Open
3 of 8 tasks
pawaru opened this issue Aug 1, 2023 · 0 comments
Open
3 of 8 tasks

cds-file custom buttonLabel resets to "Browse" on clearing files #258

pawaru opened this issue Aug 1, 2023 · 0 comments

Comments

@pawaru
Copy link

pawaru commented Aug 1, 2023

Describe the bug

cds-file custom label resets to "Browse" on clearing files instead of retaining the custom label set using buttonLabel property.

How to reproduce

Stackblitz reproducing the scenario: https://stackblitz.com/edit/clarity-light-theme-clr15-bnzy1c

Steps to reproduce the behavior:

  1. Before uploading any files, button displays the "Custom Label"
  2. After uploading file, the label changes to:
    a. Filename - In case of single file
    b. 'X' Files - In case of multiple files
  3. On clearing the input, button displays "Browse" instead of the "Custom Label"

Expected behavior

On clearing the input files using the 'X' button, the label should change to "Custom Label" instead of "Browse"

Versions

"@cds/angular": "^6.3.1",
"@cds/city": "^1.1.0",
"@cds/core": "^6.3.1",
"@clr/angular": "~15.1.0",
"@clr/ui": "~15.1.0",

Clarity project:

  • Clarity Core
  • Clarity Angular/UI

Clarity version:

  • v5.x
  • v6.x

Framework:

  • Angular
  • React
  • Vue
  • Other:

Framework version:
Clarity Angular v15

Device:

  • Type: Laptop
  • OS: Windows 11 Enterprise
  • Browser : Chrome Version 115.0.5790.110
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant