mirror of
https://github.com/gristlabs/grist-core.git
synced 2026-03-02 04:09:24 +00:00
(core) Fix WelcomePage to use an explicit action URL, and parse submitted body in time to log it with errors.
Test Plan: Tested manually that "Preflight" error goes away in Safari. Reviewers: paulfitz Reviewed By: paulfitz Differential Revision: https://phab.getgrist.com/D2644
This commit is contained in:
@@ -77,7 +77,7 @@ export class WelcomePage extends Disposable {
|
||||
|
||||
return form = dom(
|
||||
'form',
|
||||
{ method: "post" },
|
||||
{ method: "post", action: location.href },
|
||||
handleSubmit(),
|
||||
cssLabel('Your full name, as you\'d like it displayed to your collaborators.'),
|
||||
inputEl = cssInput(
|
||||
@@ -101,7 +101,7 @@ export class WelcomePage extends Disposable {
|
||||
*/
|
||||
private _buildInfoForm(owner: MultiHolder) {
|
||||
const allFilled = Observable.create(owner, false);
|
||||
return forms.form({method: "post"},
|
||||
return forms.form({method: "post", action: location.href },
|
||||
handleSubmit(),
|
||||
(elem) => { setTimeout(() => elem.focus(), 0); },
|
||||
forms.text('Please help us serve you better by answering a few questions.'),
|
||||
|
||||
Reference in New Issue
Block a user