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

Textarea with autoResize true not displayed correctly when initially hidden #274

Closed
wanglin86769 opened this issue Apr 14, 2020 · 2 comments
Assignees
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Milestone

Comments

@wanglin86769
Copy link

wanglin86769 commented Apr 14, 2020

image

@wanglin86769
Copy link
Author

<template>
    <div>
        <DataTable :value="cars">
            <Column field="vin" header="Vin">
                <template #body="slotProps">
                    <Textarea v-model="slotProps.data.vin" :autoResize="true" rows="5" style="width:100%" />
                </template>
            </Column>
            <Column field="year" header="Year"></Column>
            <Column field="brand" header="Brand"></Column>
            <Column field="color" header="Color"></Column>
        </DataTable>

        <br>

        <TabView>
            <TabPanel header="Test I">
                <DataTable :value="cars">
                    <Column field="vin" header="Vin">
                        <template #body="slotProps">
                            <Textarea v-model="slotProps.data.vin" :autoResize="true" rows="5" style="width:100%" />
                        </template>
                    </Column>
                    <Column field="year" header="Year"></Column>
                    <Column field="brand" header="Brand"></Column>
                    <Column field="color" header="Color"></Column>
                </DataTable>
            </TabPanel>
            <TabPanel header="Test II">
                <DataTable :value="cars">
                    <Column field="vin" header="Vin">
                        <template #body="slotProps">
                            <Textarea v-model="slotProps.data.vin" :autoResize="true" rows="5" style="width:100%" />
                        </template>
                    </Column>
                    <Column field="year" header="Year"></Column>
                    <Column field="brand" header="Brand"></Column>
                    <Column field="color" header="Color"></Column>
                </DataTable>
            </TabPanel>
            <TabPanel header="Test III">
                <DataTable :value="cars">
                    <Column field="vin" header="Vin">
                        <template #body="slotProps">
                            <Textarea v-model="slotProps.data.vin" :autoResize="true" rows="5" />
                        </template>
                    </Column>
                    <Column field="year" header="Year"></Column>
                    <Column field="brand" header="Brand"></Column>
                    <Column field="color" header="Color"></Column>
                </DataTable>
            </TabPanel>
        </TabView>
    </div>
</template>

<script>

export default {
    data() {
        return {
            cars: [
                {
                    "brand": "VW",
                    "year": 2012,
                    "color": "Orange",
                    "vin": "dsad231ff"
                },
                {
                    "brand": "Audi",
                    "year": 2011,
                    "color": "Black",
                    "vin": "gwregre345"
                },
                {
                    "brand": "Renault",
                    "year": 2005,
                    "color": "Gray",
                    "vin": "h354htr"
                }
            ]
        }
    },
    components: {
    }
}
</script>

<style scoped>

</style>

@cagataycivici cagataycivici self-assigned this Apr 17, 2020
@cagataycivici cagataycivici added the Type: Bug Issue contains a bug related to a specific component. Something about the component is not working label Apr 17, 2020
@cagataycivici cagataycivici added this to the 1.3.0 milestone Apr 17, 2020
@cagataycivici
Copy link
Member

I'll check for next week's 1.3.0, thanks.

@cagataycivici cagataycivici changed the title Textarea with autoResize true not displayed correctly inside TabView Textarea with autoResize true not displayed correctly when initially hidden Apr 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Projects
None yet
Development

No branches or pull requests

2 participants