Skip to content

Files

Latest commit

 

History

History
28 lines (18 loc) · 735 Bytes

require-toggle-inside-transition.md

File metadata and controls

28 lines (18 loc) · 735 Bytes

Pattern: Missing toggle inside <transition>

Issue: -

Description

This rule reports elements inside <transition> that do not control the display.

<template>
  <!-- ✓ GOOD -->
  <transition><div v-if="show" /></transition>
  <transition><div v-show="show" /></transition>

  <!-- ✗ BAD -->
  <transition><div /></transition>
</template>

Further Reading