Skip to content

Commit 0e7b602

Browse files
author
minjk-bl
committed
Focus on first input on opening inner popup
1 parent afe34ec commit 0e7b602

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

js/com/component/PopupComponent.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -835,6 +835,9 @@ define([
835835
openInnerPopup(title) {
836836
$(this.wrapSelector('.vp-inner-popup-title')).text(title);
837837
$(this.wrapSelector('.vp-inner-popup-box')).show();
838+
839+
// focus on first input
840+
$(this.wrapSelector('.vp-inner-popup-box input[type=text]:not(:disabled):visible:first')).focus();
838841
}
839842

840843
/**

0 commit comments

Comments
 (0)