import { DirectiveOptions } from 'vue' ; const attributeName = 'data-interaction-does-not-collapse' ; export function hasDirective ( el ) { if ( el . hasAttribute ( attributeName ) ) { return true ; } const parent = el . closest ( `[${ attributeName }]` ) ; return ! ! parent ; } export const NonCollapsing = { inserted ( el ) { el . setAttribute ( attributeName , '' ) ; } , } ;