Skip to content

typeof [value] !=='undefined' when the template color is hidden #112

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

Closed
hairyf opened this issue Mar 24, 2021 · 4 comments
Closed

typeof [value] !=='undefined' when the template color is hidden #112

hairyf opened this issue Mar 24, 2021 · 4 comments
Labels

Comments

@hairyf
Copy link

hairyf commented Mar 24, 2021

image

@johnsoncodehk
Copy link
Member

Thanks for the report, but I can't reproduce this problem, please give me a minimal reproduction template code.

@johnsoncodehk
Copy link
Member

Close because can't reproduce.

@johnsoncodehk
Copy link
Member

Reproduce in this code.

<template>
  <div v-if="typeof {} !== 'object'">
    <input
      v-model="pendingFilename"
      spellcheck="false"
      @keyup.enter="doneAddFile"
      @keyup.esc="cancelAddFile"
      @vnodeMounted="focus"
    />
  </div>
</template>

Haven't inspected in depth yet, you can wrap () to fix for now: v-if="(typeof ...)".

@johnsoncodehk johnsoncodehk reopened this Apr 13, 2021
@johnsoncodehk johnsoncodehk added bug Something isn't working and removed need info labels Apr 13, 2021
@johnsoncodehk
Copy link
Member

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

No branches or pull requests

2 participants