TobyMosque / app-extension-qdatetimepicker

QDateTimePicker for Quasar

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cannot add property fit, object is not extensible

nailfar opened this issue · comments

  const { value, rules, ...props } = this.self.$props
  const { input, ...listeners } = this.self.$listeners
  const { append, ...scopedSlots } = this.self.$scopedSlots
  const attrs = this.self.$attrs
  const options = {
    attrs,
    props,
    on: listeners,
    scopedSlots: scopedSlots
  }
  if (ref) {
    options.ref = ref
  }
  if (cbOptions) {
    cbOptions(options)
  }
  return this.h(component, options, children)
}

cbOptions cannot add property to $attrs; It is not extensible;
It will be better;

const options = {
      attrs:{...attrs},
      props,
      on: listeners,
      scopedSlots: scopedSlots
  }

please, update to 1.0.0-rc.8