Skip to content

Commit 45db874

Browse files
committed
remove info
1 parent fe57378 commit 45db874

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/guide/components/events.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -292,13 +292,10 @@ export default {
292292
## Events as Props {#events-props}
293293

294294
You may also declare and pass `events` as `props`, by prefixing the capitalized event name with `on`
295-
296-
:::info
297295
Using `props.onEvent` has a different behaviour than using `emit('event')`, as the former will pass only handle the property based listener (either `@event` or `:on-event`)
298-
:::
299296

300297
:::warning
301-
If both `:onEvent` and `@event` are passed `props.onEvent` might be an array of `functions` instead of `function`.
298+
If both `:onEvent` and `@event` are passed `props.onEvent` might be an array of `functions` instead of `function`, this behavior is not stable and might change in the future.
302299
:::
303300

304301
Because of this, it is recommended to use `emit('event')` instead of `props.onEvent` when emitting events.

0 commit comments

Comments
 (0)