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

Calendar seconds are locked when min/max set #923

Closed
fairking opened this issue Feb 1, 2021 · 1 comment
Closed

Calendar seconds are locked when min/max set #923

fairking opened this issue Feb 1, 2021 · 1 comment
Assignees
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Milestone

Comments

@fairking
Copy link

fairking commented Feb 1, 2021

Primevue v.2.2.2

Setting the min/max values locks the seconds.

I am working on some very small intervals. I'm glad min/max also restricts time. But I think I found a small error.
If I set min/max the seconds stop working.

Please find the example here: https://jsfiddle.net/FairKing/r83yb9mn/4/

Bellow is the exact code:

<div id="app">
  <p-calendar v-model="value" :min-date="min" :max-date="max" 
  :show-time="true" :show-seconds="true" :show-icon="true"></p-calendar>
</div>

<script>
new Vue({
  el: "#app",
  components: {
  	"p-calendar": calendar
  },
  data: {
  	value: new Date(2021, 2, 1, 5, 18, 28),
    min: new Date(2021, 2, 1, 5, 18, 28),
    max: new Date(2021, 2, 1, 5, 19, 07),
  },
  methods: {
  	
  }
})
</script>
@cagataycivici cagataycivici added the Type: Bug Issue contains a bug related to a specific component. Something about the component is not working label Feb 2, 2021
@cagataycivici cagataycivici added this to the 2.4.0 milestone Feb 2, 2021
@fairking
Copy link
Author

fairking commented Feb 4, 2021

Hi @tugcekucukoglu I left some feedback for you about the commit (2cfc732).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Projects
None yet
Development

No branches or pull requests

3 participants