Skip to content

Latest commit

 

History

History
30 lines (20 loc) · 226 KB

File metadata and controls

30 lines (20 loc) · 226 KB

prevent event propagation easy #Event Handling

By 木荣 @murongg

Take the Challenge    Take the Challenge(Passed unit tests)    简体中文

In this challenge,you should make the click event's propagation to be stopped,let's go 👇:

<script setup lang="ts">

const click1 = () => {
  console.log('click1')
}

const click2 = () => {
  console.log('click2')
}

</script>

<template>
  <div @click="click1()">
   <div @click="click2()">
     click me
   </div>
  </div>
</template>

Back Share your Solutions Check out Solutions