File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
stories/components/peoplePicker Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -65,12 +65,15 @@ const closeModal = document.getElementById("close-modal")
6565const modalContent = document . getElementById ( "modal-content" )
6666const modalPicker = document . getElementById ( "modal-picker" )
6767modal . addEventListener ( 'click' , ( ) => {
68- modalContent . style . display = "flex"
69- modalPicker . selectedPeople = [ ]
68+ modalContent . style . display = "flex"
69+ modalPicker . selectedPeople = [ ]
70+ const input = modalPicker . shadowRoot . querySelector ( 'fluent-text-field' ) . shadowRoot . querySelector ( 'input' ) ;
71+ input . focus ( ) ;
7072} )
7173
7274closeModal . addEventListener ( 'click' , ( ) => {
73- modalContent . style . display = "none"
75+ modalContent . style . display = "none" ;
76+ modal . focus ( ) ;
7477} )
7578</ script >
7679` ;
You can’t perform that action at this time.
0 commit comments