Skip to content

VaModal should remove blured bg onUnmouted #2383

@m0ksem

Description

@m0ksem

For now it only watch fro valueComputed. We might need some useBlur hook which handle removing blurred class if it applied onUnmounted,

    watchEffect(() => {
      if (props.blur) {
        if (valueComputed.value) {
          document.value?.body.classList.add('va-modal-overlay-background--blurred')
        } else {
          document.value?.body.classList.remove('va-modal-overlay-background--blurred')
        }
      }
    })

Metadata

Metadata

Assignees

Labels

BUGSomething isn't workingd2: easyRecomended mode for new, but mature players

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions