mirror of
https://github.com/frappe/books.git
synced 2024-12-25 20:11:15 +00:00
FIX: Enter pressing on a cell with a value error
This commit is contained in:
parent
a531450033
commit
d9b5e56072
@ -99,7 +99,8 @@ export default {
|
||||
enterPressOnCell() {
|
||||
const { index, fieldname } = this.currentlyFocused;
|
||||
if (this.isEditing(index, fieldname)) {
|
||||
this.deactivateEditing();
|
||||
// FIX: enter pressing on a cell with a value throws error.
|
||||
// this.deactivateEditing();
|
||||
this.activateFocus(index, fieldname);
|
||||
} else {
|
||||
this.activateEditing(index, fieldname);
|
||||
@ -212,7 +213,8 @@ export default {
|
||||
};
|
||||
},
|
||||
activateFocus(i, fieldname) {
|
||||
this.deactivateEditing();
|
||||
// FIX: enter pressing on a cell with a value throws error.
|
||||
// this.deactivateEditing();
|
||||
const docfield = this.columns.find(c => c.fieldname === fieldname);
|
||||
this.currentlyFocused = {
|
||||
index: i,
|
||||
|
Loading…
Reference in New Issue
Block a user