Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Match Failed [400] #19896

Closed
cassiobastos opened this issue Dec 18, 2020 · 1 comment · Fixed by #19902
Closed

Match Failed [400] #19896

cassiobastos opened this issue Dec 18, 2020 · 1 comment · Fixed by #19902
Labels
stat: triaged Issue reviewed and properly tagged

Comments

@cassiobastos
Copy link

Steps to reproduce
1 - Go to My Account - Preferences - Highlight - Highlight Words (I don't know if this is the correct option name because I use the Portuguese version, whose translation is "Destaques - Destacar Palavras").
2 - Put some words in the field and save
3 - Clear the field and try to save again
4 - it throws the error "Match Failed [400]"

Expected behavior
To be able to save the field empty

Actual behavior
It prevents me to save until I put some content on it.

Server Setup Information
What kind of information?

Version of Rocket.Chat Server
3.9.1

@aKn1ghtOut
Copy link
Contributor

aKn1ghtOut commented Dec 18, 2020

The problem that causes this is that the initialValue of the TextAreaInput element(fuselage) does not change after clicking save. There is another issue that happens if you try to enter an empty "highlights" entry after reloading the page which I have solved.
The initialValue issue however might have to be dealt with a little differently, as the usage of the initialValue is causing the same issue on every other textfield as well.

@dougfabris dougfabris linked a pull request Dec 21, 2020 that will close this issue
6 tasks
@dougfabris dougfabris added stat: triaged Issue reviewed and properly tagged and removed Triaged labels Dec 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stat: triaged Issue reviewed and properly tagged
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants