Hi Themeco Team,
Today I discovered what appears to be a bug related to CSForms input’s Class in a custom JavaScript implementation that manages both a password strength indicator and a show/hide password feature within a password reset/change workflow.
Everything was working perfectly until recently.
The inputs are built using CS Forms, with custom names and Classs assigned in Cornerstone. My JavaScript relies on those Class to function correctly.
After investigating the issue, I found that CS Forms now seems to automatically replace the input’s Class on the front end, even when custom Class have been explicitly defined.
For instance, I have two password fields configured in Cornerstone, initially contain those values as Name and Class:
- First password field:
pass1(as name and Class) - Second password field:
pass2(as name and Class)
However, in the front-end DOM (as inspected through Google Chrome DevTools), custom classes are being replaced with generic values as :
cs-input
This was not the previous behavior.
As a result, my class-based selectors no longer work because the IDs rendered on the front end no longer match those configured in Cornerstone.
I can easily update my code to work around this issue, but before doing so I would like to know whether this behavior is intentional and expected in CS Forms, or whether it is a bug that will be addressed in a future update.
From my understanding, it currently appears that developers can no longer define and preserve custom input classes within CS Forms.
Thank you for your clarification,
–
Florian


