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

"change" property conflicts with "change" methods #6

Open
mryellow opened this issue Aug 8, 2020 · 1 comment
Open

"change" property conflicts with "change" methods #6

mryellow opened this issue Aug 8, 2020 · 1 comment
Labels
bug Something isn't working

Comments

@mryellow
Copy link
Collaborator

mryellow commented Aug 8, 2020

Addition of change: Function property in Vue.mgComponent conflicts with methods called change which are used as event handlers.

Perhaps event handlers should always feature a Handler suffix. i.e. changeHandler.

ddefe31#diff-f5da0efe07b6a8ae1fd77554493d94d4R7147-R7149


found in

---> <MgChoiceDropdown>
       <MgWorkflow>
         <MgComponent>
           <MgContainer>
             <MgComponent>
               <MgContainer>
                 <MgComponent>
                   <MgForm>
                     <FormsEdit>
                       <Root>
Avoid mutating a prop directly since the value will be overwritten whenever the parent component re-renders. Instead, use a data or computed property based on the prop's value. Prop being mutated: "change"
@mryellow mryellow added the bug Something isn't working label Aug 8, 2020
@mryellow
Copy link
Collaborator Author

mryellow commented Aug 8, 2020

Commented out the change property for now.

164b069

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant