1
0
mirror of https://github.com/krateng/maloja.git synced 2023-08-10 21:12:55 +03:00

Fixed double request when editing

This commit is contained in:
krateng 2022-04-16 02:17:14 +02:00
parent 263e7cd704
commit f3f7dbd8ef

View File

@ -29,7 +29,7 @@ function editEntity() {
namefield.addEventListener('keypress',function(e){
if (e.which === 13) {
e.preventDefault();
doneEditing();
namefield.blur(); // this leads to below
}
})
@ -41,7 +41,7 @@ function editEntity() {
})
// manually clicking away
// manually clicking away OR enter
namefield.addEventListener('blur',function(e){
doneEditing();