when finishing a geoetry on mobile in the editor, don't break the UI

This commit is contained in:
Laura Klünder 2024-12-27 13:09:18 +01:00
parent 393637b6ad
commit 06589d10c9

View file

@ -1470,7 +1470,11 @@ editor = {
const form = $('#sidebar').find('.content').find('form.creation-lock');
form.removeClass('creation-lock')
if (editor._creating_type !== 'multipoint') {
form.find('input:not([type=hidden], .btn)').first().focus();
if ($('#responsive_switch').is(':visible')) {
$('#show_details').click();
} else {
form.find('input:not([type=hidden], .btn)').first().focus();
}
}
}
},