Scroll to the tab
This commit is contained in:
		
							parent
							
								
									a9e60aad2e
								
							
						
					
					
						commit
						6ad2b1f93a
					
				
					 1 changed files with 6 additions and 0 deletions
				
			
		|  | @ -132,6 +132,12 @@ class Tabs { | |||
| 				? ((this[name][`elements`][`tabs`][ID][`container`].classList.contains(`active`)) ? false : this[name][`elements`][`tabs`][ID][`header`].click()) | ||||
| 				: false);	 | ||||
| 
 | ||||
| 			// Scroll to the tab. 
 | ||||
| 			if (nested.dictionary.get(this, [name, `elements`, `tabs`, ID, `header`])) { | ||||
| 				// Scroll to the tab.
 | ||||
| 				this[name][`elements`][`tabs`][ID][`header`].scrollIntoView({"behavior": "smooth", "block": "start"}); | ||||
| 			}; | ||||
| 			 | ||||
| 			// Remove the lock.
 | ||||
| 			this[`status`][`opening`] = false; | ||||
| 		} | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue