Skip to content

Commit

Permalink
Bug fixes in empty form fields (#126)
Browse files Browse the repository at this point in the history
* fix empty field_key

* fix title height
  • Loading branch information
frankrowe authored and tetriscode committed Sep 30, 2016
1 parent 4c6c237 commit 6ea2dc1
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion web/components/FormPreview.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class FormPreview extends Component {
updateActiveField={this.props.updateActiveField}
form={this.props.form}
input={locals.inputs[field.field_key]}
key={field.field_key}
key={'field.'+field.field_key+'.'+idx}
moveField={this.moveField.bind(this)}
position={field.position}
id={field.id}
Expand Down
2 changes: 1 addition & 1 deletion web/ducks/forms.js
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ export function addField(payload) {
let field = _.merge({
id: position + 1,
position: position,
field_key: payload.field_key,
field_key: position + 1,
field_label: payload.field_label
}, payload.options);
dispatch({
Expand Down
4 changes: 1 addition & 3 deletions web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,12 @@
"build": "NODE_ENV=production webpack"
},
"dependencies": {
"babel-cli": "^6.16.0",
"babel-plugin-transform-class-properties": "^6.8.0",
"babel-plugin-transform-object-rest-spread": "^6.8.0",
"babel-polyfill": "^6.8.0",
"bluebird": "3.4.1",
"classnames": "^2.2.5",
"expect": "^1.19.0",
"express-ws": "2.0.0",
"immutable": "^3.8.1",
"json-loader": "0.5.4",
"jwt-decode": "2.0.1",
Expand All @@ -38,7 +36,7 @@
"redux-form": "^5.2.3",
"redux-logger": "*",
"redux-thunk": "^2.0.1",
"spatialconnect-form-schema": "2.2.3",
"spatialconnect-form-schema": "2.2.4",
"superagent": "^1.8.0-beta.2",
"superagent-bluebird-promise": "^3.0.0",
"tcomb-form": "^0.9.4",
Expand Down
2 changes: 1 addition & 1 deletion web/style/FormDetails.less
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
flex-direction: column;
.form-info {
width: 100%;
height: 50px;
min-height: 50px;
display: flex;
background: @bgblue;
border-bottom: 1px solid #ccc;
Expand Down

0 comments on commit 6ea2dc1

Please sign in to comment.