(target: EventTarget | null)
| 92 | }; |
| 93 | |
| 94 | export function isTextSelectionTarget(target: EventTarget | null) { |
| 95 | if (!(target instanceof HTMLElement)) return false; |
| 96 | if (target.isContentEditable) return true; |
| 97 | const tag = target.tagName.toLowerCase(); |
| 98 | return tag === 'input' || tag === 'textarea'; |
| 99 | } |
no outgoing calls
no test coverage detected