vuejs/vue-rx

Does not support feature Event Modifiers

pinghe opened this issue · 5 comments

Does not support feature Event Modifiers

v-stream:click.stop

https://vuejs.org/v2/guide/events.html#Event-Modifiers

regou commented

stop & prevent default you may you do operator for now
Others use options: { once: true, passive: true, capture: true }
https://github.com/vuejs/vue-rx/blob/master/README.md#v-stream-streaming-dom-events

v-stream:click="plus$"

  domStreams: ['plus$'],
  subscriptions () {
    this.plus$
        .do(x => {
          console.log(x.event)
          x.stopPropagation()
        })
        .catch(err => {
          console.log('error: ', err)
        })


output:
error:  TypeError: x.stopPropagation is not a function
regou commented

@pinghe x.event.stopPropagation()

Need to add .native Modifier, otherwise the following error occurs
error: TypeError: x.event.stopPropagation is not a function

regou commented

@pinghe x.event.stopPropagation() works fine on native element without any error.
pr63 merged