Skip to content
This repository has been archived by the owner on Dec 13, 2020. It is now read-only.

Commit

Permalink
Fix lookup behavior #600
Browse files Browse the repository at this point in the history
  • Loading branch information
Dunkat committed May 17, 2017
1 parent 670543a commit 7f74647
Show file tree
Hide file tree
Showing 7 changed files with 54 additions and 540 deletions.
1 change: 1 addition & 0 deletions src/assets/css/inputs.css
Original file line number Diff line number Diff line change
Expand Up @@ -646,6 +646,7 @@ input:checked + .input-slider:before {
.lookup-wrapper {
display: flex;
padding: 0;
justify-content: space-between;
}

.raw-lookup-wrapper {
Expand Down
3 changes: 0 additions & 3 deletions src/components/widget/List/List.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,6 @@ class List extends Component {
handleSelect = (option) => {
const {onChange, lookupList, properties, setNextProperty, mainProperty, children} = this.props;

console.log(properties);
console.log(children);

if(lookupList){
onChange(children, null);
onChange(properties[0].field, option);
Expand Down
2 changes: 1 addition & 1 deletion src/components/widget/List/RawList.js
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ class RawList extends Component {
' input-dropdown-list-option-key-on' :
defaultValue === option[Object.keys(option)[0]] ?
' input-dropdown-list-option-key-on' :
''
!defaultValue && !selected && index == 1 ? ' input-dropdown-list-option-key-on':''
)
}
onMouseEnter={() => this.handleSwitch(option)}
Expand Down
Loading

0 comments on commit 7f74647

Please sign in to comment.