fix: get btn container
This commit is contained in:
		
							parent
							
								
									935b56e4d2
								
							
						
					
					
						commit
						1f62f47dc8
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -9,7 +9,7 @@ import btnListCss from './btn.css' | |||
| type BtnElement = HTMLButtonElement | ||||
| 
 | ||||
| const getBtnContainer = (): HTMLDivElement => { | ||||
|   const container = document.querySelectorAll('aside>section>section')[0] | ||||
|   const container = document.querySelectorAll('section>section>section>section')[0] | ||||
|   const btnParent = [...container.children].find((div) => { | ||||
|     const b = div.querySelector('button, .button') | ||||
|     const text = b ? b.outerHTML.replace(/\s/g, '') : '' | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue