Skip to content
Snippets Groups Projects
Commit 89df9482 authored by Tina Quach's avatar Tina Quach
Browse files

remove e and ordering

parent 83793157
Branches
Tags
No related merge requests found
......@@ -17,10 +17,10 @@ class LibraryItem extends React.PureComponent {
'handleMouseLeave'
]);
}
handleBlur (e) {
handleBlur () {
this.props.onBlur(this.props.id);
}
handleFocus (e) {
handleFocus () {
this.props.onFocus(this.props.id);
}
handleClick (e) {
......@@ -59,8 +59,8 @@ class LibraryItem extends React.PureComponent {
role="button"
tabIndex="0"
onBlur={this.handleBlur}
onFocus={this.handleFocus}
onClick={this.handleClick}
onFocus={this.handleFocus}
onMouseEnter={this.handleMouseEnter}
onMouseLeave={this.handleMouseLeave}
>
......
......@@ -25,11 +25,9 @@ class LibraryComponent extends React.Component {
};
}
handleBlur (id) {
console.log('library handling blur');
this.handleMouseLeave(id);
}
handleFocus (id) {
console.log('library handling focus');
this.handleMouseEnter(id);
}
handleSelect (id) {
......@@ -75,8 +73,8 @@ class LibraryComponent extends React.Component {
id={index}
key={`item_${index}`}
name={dataItem.name}
onFocus={this.handleFocus}
onBlur={this.handleBlur}
onFocus={this.handleFocus}
onMouseEnter={this.handleMouseEnter}
onMouseLeave={this.handleMouseLeave}
onSelect={this.handleSelect}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment