vue-datetime icon indicating copy to clipboard operation
vue-datetime copied to clipboard

It would be great if we get the closing reason.

Open aneesshameed opened this issue 5 years ago • 0 comments

Versions

  • vue: 2.0.0
  • vue-datetime: 1.0.0-beta.13
  • luxon: 1.24.1

Description: I would like to know the closing reason for the DateTime picker popup and take action only it the user has confirmed the date. If the user has canceled the datepicker then don't take any action.

maybe something like this

close (reason) {
      this.isOpen = false
      this.$emit('close', reason)
    },
    confirm (datetime) {
      this.datetime = datetime.toUTC()
      this.emitInput()
      this.close("confirm")
    },
    cancel () {
      this.close("cancel")
    },

aneesshameed avatar Jun 06 '20 13:06 aneesshameed