Skip to content

Commit bb2093d

Browse files
Fix: filename should be bold (#4125)
* Fix: filename should be bold Also prevents horrible looking "\</strong>" from being printed on screen. * Update CHANGELOG.md
1 parent f0619f7 commit bb2093d

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ should change the heading of the (upcoming) version to include a major version b
2525
## @rjsf/utils
2626

2727
- Added a new `skipEmptyDefault` option in `emptyObjectFields`, fixing [#3880](https://github.com/rjsf-team/react-jsonschema-form/issues/3880)
28+
- Fixed bug where the string `"\</strong>"` would get printed next to filenames when uploading files, and restored intended bolding of filenames fixing [#4120](https://github.com/rjsf-team/react-jsonschema-form/issues/4120).
2829

2930
## Dev / docs / playground
3031

packages/utils/src/enums.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,5 +70,5 @@ export enum TranslatableString {
7070
/** File name, type and size info, where %1, %2 and %3 will be replaced by the file name, file type and file size as
7171
* provided by FileWidget
7272
*/
73-
FilesInfo = '<strong>%1</strong> (%2, %3 bytes)',
73+
FilesInfo = '**%1** (%2, %3 bytes)',
7474
}

0 commit comments

Comments
 (0)