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

Prop starting with 'on' #24

Open
darkdrew007 opened this issue Jul 26, 2019 · 0 comments
Open

Prop starting with 'on' #24

darkdrew007 opened this issue Jul 26, 2019 · 0 comments

Comments

@darkdrew007
Copy link

Installed product versions

  • Visual Studio: 2017 Professional
  • This extension: 1.1.8

Description

In a single file vue component if you bind to a property starting with 'on' using the shortcut binding syntax ':' an exception is thrown when the file is opened. Also the regions within the Javascript portion of the file will not display the collapse code boxes. The component will compile correctly, the issue appears to cause incorrect behavior within the VS2017 editor window.
This causes the problem:
This will not cause the problem:

Steps to recreate

  1. Open a .vue file
  2. Add the following binding to any portion of the template markup :onMyProp="test"
  3. Save the file, close and reopen the file
  4. Visual Studio throw an exception
  5. Close the exception, notice you can no longer collapse the javascript regions

Current behavior

Throws exception and Javascript regions cannot be collapsed. File will compile and run correctly, only appears to be an issue within the VS2017 editor.

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

No branches or pull requests

1 participant