Bug/Issue with Dropdowns in Beta-1

UI Components for React
Post Reply
pjludda
Posts: 3
Joined: 12 Jun 2018, 21:24

25 Jul 2018, 16:45

Hi,

I am having an issue where I am getting this weird effect when I'm trying to use a dropdown in the latest update. It was working pre-update, but now that I'm in the new one, everything looks out of whack:

Image

The code is literally copied from the site on how to create a Dropdown (the onChange is calling a function so that I could use it to open up an Input to filter by text):

Code: Select all

       const dropdownfilters = [
            { label: 'Last Name', value: 'LastName' },
            { label: 'First Name', value: 'FirstName' },
            { label: 'Phone Number', value: 'Phone' },
            { label: 'E-Mail', value: 'EMail' },
            //{ label: 'Application Date', value: 'AppDate' },
            //{ label: 'Request Date', value: 'ReqDate' },
            { label: 'Application Status', value: 'AppStatus' }
        ];
        
        <div className="app-sel-filter-container ui-g-3">
            <h3>Filter Select: </h3>
                  <Dropdown
                      value={this.state.ddlsel}
                      options={dropdownfilters}
                      onChange={this.onDropDownSelect.bind(this)}
                      placeholder="Select a Filter" />
        </div>
Honestly, it doesn't look like there should be any issue on my end, so I am thinking that there is a bug via the updated code.

Could I get some help on this issue?

Thanks,

User avatar
sudheer
PrimeFaces Core Developer
Posts: 4345
Joined: 16 Oct 2011, 19:19
Location: Singapore

03 Sep 2018, 16:07

I didn't find any issue with current release. Also, don't copy from source code but it is safer to use from repository. There might be some typo's in that.
Author,Speaker
https://twitter.com/sudheerjonna
Github: https://github.com/sudheerj
Website http://sudheerjonna.com/

___________________
Sudheer Jonna

Post Reply

Return to “PrimeReact”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 7 guests