File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -16,15 +16,15 @@ export function initRepoTopicBar() {
1616 let lastErrorToast : Toast ;
1717
1818 mgrBtn . addEventListener ( 'click' , ( ) => {
19- hideElem ( viewDiv ) ;
19+ hideElem ( [ viewDiv , mgrBtn ] ) ;
2020 showElem ( editDiv ) ;
2121 topicDropdown . querySelector < HTMLInputElement > ( 'input.search' ) . focus ( ) ;
2222 } ) ;
2323
2424 document . querySelector ( '#cancel_topic_edit' ) . addEventListener ( 'click' , ( ) => {
2525 lastErrorToast ?. hideToast ( ) ;
2626 hideElem ( editDiv ) ;
27- showElem ( viewDiv ) ;
27+ showElem ( [ viewDiv , mgrBtn ] ) ;
2828 mgrBtn . focus ( ) ;
2929 } ) ;
3030
@@ -55,7 +55,7 @@ export function initRepoTopicBar() {
5555 }
5656 }
5757 hideElem ( editDiv ) ;
58- showElem ( viewDiv ) ;
58+ showElem ( [ viewDiv , mgrBtn ] ) ;
5959 }
6060 } else if ( response . status === 422 ) {
6161 // how to test: input topic like " invalid topic " (with spaces), and select it from the list, then "Save"
You can’t perform that action at this time.
0 commit comments