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

Conversation

8845musign
Copy link

@8845musign 8845musign commented May 21, 2024

  • Once a value is selected, the picker does not open when the input is clicked
  • Because the focus event is not fired twice
  • Fixed to open the picker in the click event
    • The actual open process runs twice, but it seems to be fine.

@@ -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

@vietnguyenhub
Copy link

I have same issue, please merge it, SOS help me please T.T

@sumiki
Copy link

sumiki commented Aug 21, 2024

upgraded from 0.2.4 to 0.4 then this start happening.
better not to add many codes but work around was

@closed="handleEffectDateClose"
    const handleEffectDateClose = (e) => {
      if (document.activeElement) {
        document.activeElement.blur();
      }
    }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants