mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 16:40:24 +08:00 
			
		
		
		
	Fix duplicate tooltip hiding (#24814)
A tippy instance's role is actually on `props.role`. This makes duplicate tooltip hiding work again after https://github.com/go-gitea/gitea/pull/24688.
This commit is contained in:
		@@ -20,7 +20,7 @@ export function createTippy(target, opts = {}) {
 | 
			
		||||
    onShow: (instance) => {
 | 
			
		||||
      // hide other tooltip instances so only one tooltip shows at a time
 | 
			
		||||
      for (const visibleInstance of visibleInstances) {
 | 
			
		||||
        if (visibleInstance.role === 'tooltip') {
 | 
			
		||||
        if (visibleInstance.props.role === 'tooltip') {
 | 
			
		||||
          visibleInstance.hide();
 | 
			
		||||
        }
 | 
			
		||||
      }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user