All Downloads are FREE. Search and download functionalities are using the official Maven repository.

package.lib.composables.selectLink.mjs Maven / Gradle / Ivy

// Utilities
import { nextTick, watch } from 'vue';

// Types

export function useSelectLink(link, select) {
  watch(() => link.isActive?.value, isActive => {
    if (link.isLink.value && isActive && select) {
      nextTick(() => {
        select(true);
      });
    }
  }, {
    immediate: true
  });
}
//# sourceMappingURL=selectLink.mjs.map




© 2015 - 2024 Weber Informatics LLC | Privacy Policy