Skip to content

Commit

Permalink
Prevent editing on focus when not editable
Browse files Browse the repository at this point in the history
#fix
  • Loading branch information
aduth committed May 23, 2017
1 parent 9ed066f commit fac919a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/dones-list/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ class DonesList extends Component {
editIfNonePending = ( id ) => {
// Don't start edit if a selection is in progress. Otherwise it will
// clobber the selection offset calculation.
if ( ! this.pendingEdit ) {
if ( ! this.pendingEdit && this.isEditable() ) {
this.editDone( id );
}
};
Expand Down

0 comments on commit fac919a

Please sign in to comment.