Skip to content

Calendar seconds are locked when min/max set #923

Closed
@fairking

Description

@fairking

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>

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Type: BugIssue contains a bug related to a specific component. Something about the component is not working

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions