Skip to content

Commit

Permalink
[xprototype#4/fix] Fix field visibility change
Browse files Browse the repository at this point in the history
  • Loading branch information
wilcorrea committed Mar 29, 2019
1 parent a003709 commit 1c22b8a
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/app/Prototype/Components/Form/PrototypeComponents.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,10 @@ export default {
const key = field.$key

const error = this.fieldHasError(key)
const style = {
display: field.$layout.formHidden ? 'none' : ''
}
const data = {
key: key,
class: this.fieldClass(field.$layout.formWidth, field.$layout.formHeight, error),
domProps: { style }
style: { display: field.$layout.formHidden ? 'none' : '' }
}

const children = [
Expand Down

0 comments on commit 1c22b8a

Please sign in to comment.