Skip to content

Commit 09c6836

Browse files
committed
prevent default when no input to manually reset file name input
1 parent 6c4cc3c commit 09c6836

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

web_src/js/features/repo-editor.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ export function initRepoEditor() {
131131
const $section = $('.breadcrumb span.section');
132132

133133
if (e.keyCode === 8 && getCursorPosition($(this)) === 0 && $section.length > 0) {
134+
e.preventDefault();
134135
const $divider = $('.breadcrumb div.divider');
135136
const value = $section.last().find('a').text();
136137
$(this).val(value + $(this).val());

0 commit comments

Comments
 (0)