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

Dropdown autowidth is not working when it used inside the TabView #362

Closed
udithaindika opened this issue Mar 23, 2018 · 0 comments
Closed
Assignees
Labels
Type: Bug Issue contains a defect related to a specific component.
Milestone

Comments

@udithaindika
Copy link

udithaindika commented Mar 23, 2018

There is no guarantee in receiving an immediate response in GitHub Issue Tracker, If you'd like to secure our response, you may consider PrimeNG PRO Support where support is provided within 4 business hours

I'm submitting a ... (check one with "x")

[X] bug report
[ ] feature request
[ ] support request => Please do not submit support request here, instead see http://forum.primefaces.org/viewforum.php?f=57

Plunkr Case (Bug Reports)
https://plnkr.co/edit/gc5ndj?p=preview](https://plnkr.co/edit/gc5ndj?p=preview
https://codesandbox.io/s/zq80v2j6ox

Current behavior
When a Dropdown is used inside a non active TabPanel of a TabView, the Width of the DropDown is not properly set.

Expected behavior
Dropdown width should set regardless of the TabPanel its being used.

Minimal reproduction of the problem with instructions

  1. Create a TabView
  2. Add Two TabPanels to the TabView
  3. Add the Same Dropdown to both these TabPanels(see following JSX)
  4. When view this in the Browser , Dropdown in the First Tab have the proper Width
  5. Dropdown in the second Tab don't have the proper width(width is about 30px)
<TabView>
    <TabPanel header="Tab1">
      <Dropdown
        options={citySelectItems}
        placeholder="Select a City"
        autoWidth={true}
      />
    </TabPanel>
    <TabPanel header="Tab2">
      <Dropdown
        options={citySelectItems}
        placeholder="Select a City"
        autoWidth={true}
      />
    </TabPanel>
</TabView>

Please tell us about your environment:
Windows,Webstorm, NPM, Webpack-dev-server

React version: React v.16.2

PrimeReact version: PrimeReact v 1.5.0

Browser: [all]

Language: [ES6/7]

@mertsincan mertsincan self-assigned this Apr 2, 2018
@mertsincan mertsincan added the Type: Bug Issue contains a defect related to a specific component. label Apr 2, 2018
@mertsincan mertsincan added this to the 1.5.1 milestone Apr 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Issue contains a defect related to a specific component.
Projects
None yet
Development

No branches or pull requests

2 participants