File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -245,11 +245,13 @@ const OpenProjectWorkPackageBlockComponent = ({
245245 // Handle click outside to close dropdown
246246 useEffect ( ( ) => {
247247 const handleClickOutside = ( event : MouseEvent ) => {
248+ const path = event . composedPath ( ) ;
249+
248250 if (
249251 dropdownRef . current &&
250- ! dropdownRef . current . contains ( event . target as Node ) &&
252+ ! path . includes ( dropdownRef . current ) &&
251253 inputRef . current &&
252- ! inputRef . current . contains ( event . target as Node )
254+ ! path . includes ( inputRef . current )
253255 ) {
254256 setIsDropdownOpen ( false ) ;
255257 }
Original file line number Diff line number Diff line change 11{
22 "name" : " op-blocknote-extensions" ,
33 "private" : true ,
4- "version" : " 0.0.18 " ,
4+ "version" : " 0.0.19 " ,
55 "type" : " module" ,
66 "module" : " ./dist/op-blocknote-extensions.es.js" ,
77 "types" : " ./dist/index.d.ts" ,
You can’t perform that action at this time.
0 commit comments