Bug when you click fast on the switch panel button. It is happening because we are not waiting for the transition to finish before update state. In addition, unused currentPanel property was removed.
theme-change
<template>
replaceWith