Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Add explanation what is focusInputs for

dominik-zeglen25d9b8136a70
diff --git a/saleor/static/dashboard/js/components/modal.js b/saleor/static/dashboard/js/components/modal.js
index aa298b8139..862e38e0a4 100644
--- a/saleor/static/dashboard/js/components/modal.js
+++ b/saleor/static/dashboard/js/components/modal.js
@@ -1,6 +1,7 @@
import {initSelects} from './utils';
import SVGInjector from 'svg-injector-2';
+// List of input types that can be autofocused after opening modal
const focusInputs = [
'textarea',
'input[type="text"]:not(.select-dropdown)',