diff --git a/src/components/library-item/library-item.jsx b/src/components/library-item/library-item.jsx index 60763985032d26ccb213affffef8581457ecc965..3ae49f1553d3b93caf2aaa0ef67152ef3f80ba12 100644 --- a/src/components/library-item/library-item.jsx +++ b/src/components/library-item/library-item.jsx @@ -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} > diff --git a/src/components/library/library.jsx b/src/components/library/library.jsx index a7bf612fc5a03824b4b7d094c6266694bedee7eb..92066eca3d60e62e22d203bd2afb70fa2f3f4400 100644 --- a/src/components/library/library.jsx +++ b/src/components/library/library.jsx @@ -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}