Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.7k
[Form][ButtonBuilder] Prevent buttons names from starting with a capital letter#34445
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
8855026 tofe82230Comparefe82230 to5c843ffComparefancyweb commentedNov 18, 2019
Actually it was missing in#31705 |
5c843ff to8676a9dCompare8676a9d to0eab1fdComparexabbuh commentedNov 19, 2019
Looking back in the history of changes it seems to me that was a mistake in#28969 to deprecate names starting with uppercase letters. |
fancyweb commentedNov 19, 2019 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Just saw#34448. Closing here then 😄 |
Uh oh!
There was an error while loading.Please reload this page.
Ping@xabbuh.
It was forbidden in#28969 but it does not throw in 5.0 as it should.
We cannot use
FormConfigBuilder::validateName()inButtonBuilderbecause this one allows first capital letters. We cannot change it because form names can start with capital letters (it is currently not deprecated in 4.4).So we either also deprecate this (but why?) or we just validate button names in its own builder (proposed change in this PR).