Address review comments

This commit is contained in:
picklesrus 2021-06-09 09:08:16 -04:00
parent ef801112cd
commit 0edd946fee
2 changed files with 2 additions and 1 deletions

View file

@ -37,6 +37,7 @@ const projectShape = require('./projectshape.jsx').projectShape;
require('./preview.scss');
const frameless = require('../../lib/frameless');
// disable enter key submission on formsy input fields; otherwise formsy thinks
// we meant to trigger the "See inside" button. Instead, treat these keypresses
// as a blur, which will trigger a save.

View file

@ -110,7 +110,6 @@ class Preview extends React.Component {
socialOpen: false,
favoriteCount: 0,
isProjectLoaded: false,
isProjectCommentsGloballyEnabled: false,
isRemixing: false,
invalidProject: parts.length === 1,
justRemixed: false,
@ -960,6 +959,7 @@ Preview.defaultProps = {
backpackHost: process.env.BACKPACK_HOST,
canUseBackpack: false,
cloudHost: process.env.CLOUDDATA_HOST,
isProjectCommentsGloballyEnabled: false,
projectHost: process.env.PROJECT_HOST,
sessionStatus: sessionActions.Status.NOT_FETCHED,
user: {},