Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(VTimePicker): Fix emits on change #19575

Merged
merged 1 commit into from Apr 9, 2024
Merged

Conversation

blalan05
Copy link
Member

@blalan05 blalan05 commented Apr 9, 2024

<template>
  <v-app>
    <v-main>
      <v-container>
        <v-row>
          <v-col>
            <v-menu>
              <template #activator="{ props }">
                <v-text-field v-bind="props" v-model="thisDate" readonly />
              </template>
              <v-time-picker v-model="thisDate" format="24hr" @update:hour="hour = true" @update:minute="minute = true" @update:second="second = true" />
            </v-menu>
          </v-col>
          {{ hour }}
          {{ minute }}
          {{ second }}
        </v-row>
      </v-container>
    </v-main>
  </v-app>
</template>
<script setup>
  import { ref } from 'vue'

  const thisDate = ref(new Date())

  const minute = ref(false)
  const hour = ref(false)
  const second = ref(false)
</script>

@johnleider johnleider merged commit d85d795 into master Apr 9, 2024
19 checks passed
@johnleider johnleider deleted the fix/v3-v-time-picker-typo branch April 9, 2024 14:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants