Skip to content

Feature Request: support .passive modifier #71

@AngusFu

Description

@AngusFu

Description

Seems that the modifier .passive is not yet supported?

<div vOn:scroll_passive={this.handleScroll}></div

Solution

The equivalent template

<div v-on:scroll.passive="handleScroll"></div>

will compiles to the following in template-explorer.vuejs.org:

function render() {
  with(this) {
    return _c('div', {
      on: {
        "&scroll": function ($event) {
          return handleScroll($event)
        }
      }
    })
  }
}

We can see the only difference is the prefix & (&scroll).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions