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

each formatting will add a pair of spaces #2750

Closed
MeltMin opened this issue Apr 28, 2023 · 0 comments
Closed

each formatting will add a pair of spaces #2750

MeltMin opened this issue Apr 28, 2023 · 0 comments
Labels
bug Something isn't working good reproduction ✨ This issue provides a good reproduction, we will be able to investigate it first

Comments

@MeltMin
Copy link

MeltMin commented Apr 28, 2023

When I format my Vue3 code, spaces are automatically added to both sides of the v-for parameter like this:

before:

<a-select v-model:value="modelSelectValue">
    <a-select-option
        v-for="item of executorModel"
        :key="item"
        :value="item"
        @click="modelSelectValue = item; modelSelectOpen = 0;">{{ item }}</a-select-option>
</a-select>

after (Each formatting will add a pair of spaces):

<a-select v-model:value="modelSelectValue">
    <a-select-option
        v-for="item of  executorModel "
        :key="item"
        :value="item"
        @click="modelSelectValue = item; modelSelectOpen = 0;">{{ item }}</a-select-option>
</a-select>

However, If I reduce the two assignment statements in @click to just one, the issue is resolved.

<a-select v-model:value="modelSelectValue">
    <a-select-option
        v-for="item of executorModel"
        :key="item"
        :value="item"
        @click="modelSelectValue = item;">{{ item }}</a-select-option>
</a-select>
@johnsoncodehk johnsoncodehk added bug Something isn't working good reproduction ✨ This issue provides a good reproduction, we will be able to investigate it first labels May 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good reproduction ✨ This issue provides a good reproduction, we will be able to investigate it first
Projects
None yet
Development

No branches or pull requests

2 participants