React-toastify does not display messages containing ReactElement translations #22809
Closed
1 task done
Labels
Milestone
Overview of the issue
React-toastify does not display messages that contain ReactElement translations. For example, the toast notification is not displayed when using messages like this:
However, it does get displayed for messages like this:
Motivation for or Use Case
React-toastify does not display.
Reproduce the error
Navigate to the settings or user-management page, and press the update button.
Related issues
This issue seems to have been introduced by jhipster/react-jhipster#93.
Suggest a Fix
It appears that react-toastify supports multiple elements only when they are enclosed in Fragment tags (<></>).
JHipster Version(s)
since react-jhipster v0.24.0.
JHipster configuration
.yo-rc.json file
Environment and Tools
java version "17.0.7" 2023-04-18 LTS
Java(TM) SE Runtime Environment Oracle GraalVM 17.0.7+8.1 (build 17.0.7+8-LTS-jvmci-23.0-b12)
Java HotSpot(TM) 64-Bit Server VM Oracle GraalVM 17.0.7+8.1 (build 17.0.7+8-LTS-jvmci-23.0-b12, mixed mode, sharing)
git version 2.39.2 (Apple Git-143)
node: v20.2.0
npm: 9.6.6
Docker version 23.0.6, build ef23cbc
JDL for the Entity configuration(s)
entityName.json
files generated in the.jhipster
directoryJDL entity definitions
Browsers and Operating System
The text was updated successfully, but these errors were encountered: