-
-
Notifications
You must be signed in to change notification settings - Fork 834
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
JavaScript code is rendered while saving a new discussion title #2619
Comments
I can confirm this is also reproducible on https://beta.flarum.site which is on Beta 15 atm: 2021-02-25_17-22-33.mp4 |
I have a recording with a slight delay on when the issue occurs. Might be helpfull. rename.mp4 |
I think this is because we're passing the Stream function instead of its value. Looks like the Mithril request automatically calls the function, but the Model value is temporarily set to the function and not its output. The fix here, if I'm correct, would be to change |
That fixes it for me locally. Could you open a PR? |
@askvortsov1 Done :) |
Bug Report
Current Behavior
When editing the title of a discussion, while the saving is in progress, the title of the discussion beneath the modal becomes some JavaScript code.
2021-02-20_23-19-10.mp4
Steps to Reproduce
Environment
The text was updated successfully, but these errors were encountered: