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

Improved opening behaviour after selection #122

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions src/datepicker/Datepicker.vue
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,6 @@ export default defineComponent({
const viewShown = ref('none' as 'year' | 'month' | 'day' | 'time' | 'none')
const pageDate = ref<Date>(props.startingViewDate)
const inputRef = ref(null as HTMLInputElement | null)
const isFocused = ref(false)
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed because it appeared to be unused


const input = ref('')
watchEffect(() => {
Expand Down Expand Up @@ -383,12 +382,11 @@ export default defineComponent({
}
}

const click = () => (isFocused.value = true)
const click = () => renderView(initialView.value)

const focus = () => renderView(initialView.value)

const blur = () => {
isFocused.value = false
renderView()
}

Expand Down