jd-solanki / anu

Anu - DX focused utility based vue component library built on top of UnoCSS & VueUse ⚡️🔥

Home Page:https://anu-vue.netlify.app/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[ADrawer]: Persistent Prop Fails to Update Post-Initialization

IcetCode opened this issue · comments

commented

What is actually happening?

<script setup lang="ts">
const isDrawerShown = ref(false)
const isPersistent = ref(false)
</script>

<template>
  <ADrawer
    v-model="isDrawerShown"
    title="Drawer title"
    :persistent="isPersistent"
  >
     <ABtn @click="isPersistent = !isPersistent" >
        Change Persistent
     </ABtn>
  </ADrawer>
</template>

When I update the isPersistent value to true, AMenu can still be closed by clicking the mask.

What is Expected?

When Persistent is updated, the closing behavior should meet expectations.