Fixed button shown even when cursor is not over the entity (e.g., a video) (#356)
fix: button shown even when cursor is not over the entity (e.g., a video)
This commit is contained in:
parent
7ed3413b28
commit
0a61bbba75
1 changed files with 3 additions and 0 deletions
|
|
@ -57,6 +57,9 @@ export default () => {
|
|||
if (!usingTouch || touchInteractionType !== 'classic' || modalStack.length > 0) return null
|
||||
if (!hintText && !entityName) return null
|
||||
|
||||
// need to hide "Use" button if there isn't an entity name, but there is a hint text
|
||||
if (!entityName) return null
|
||||
|
||||
return (
|
||||
<div
|
||||
className={`${styles.hint_container} interaction-hint`}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue