You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In this method nesessary to escape special symbols like dot.
I can't avoid usage of dots in name attributes because this attributes are created by external library (react-form-hook) to map value in complex data structure:
hi @kolianovich, thanks for reporting this issue, I'm having a look at it. It's quite strange because i can not reproduce the issue by linking the scale-components locally via yarn link, and in our code the function looks like this:
note the " double quotation marks around ${this.name} - this is how the function should work as intended. I am guessing that somewhere in the compilation the double quotation mark gets removed somehow, I am investigating...
Scale Version
"@telekom/scale-components": "3.0.0-beta.147",
Framework and version
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-hook-form": "^7.50.1",
Current Behavior
Hello! I use react-form-hook library with scale components to create a complex form structure.
The issue with scale-dropdown-select. If name attribute of this component contanins dot symbol we always get a JS error.
For example, if we have:
the next JS error appears after every selection:
DOMException: Failed to execute 'querySelector' on 'Element': 'input[name=clearingTicker.originator]' is not a valid selector.
The issue is in this method of scale-dropdown-select:
In this method nesessary to escape special symbols like dot.
I can't avoid usage of dots in name attributes because this attributes are created by external library (react-form-hook) to map value in complex data structure:
For our project it is critical issue and we kindly ask you to fix it asap.
Thanks a lot.
The text was updated successfully, but these errors were encountered: