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 - TypeError: Cannot read property 'element' of null #781

Closed
adaseven opened this issue Feb 21, 2019 · 0 comments
Closed

Dropdown - TypeError: Cannot read property 'element' of null #781

adaseven opened this issue Feb 21, 2019 · 0 comments
Assignees
Labels
Type: Bug Issue contains a defect related to a specific component.
Milestone

Comments

@adaseven
Copy link

[ X] bug report
[ ] feature request
[ ] support request => Please do not submit support request here, instead see

Current behavior
Dropdown is defined as follows:

	let months = [
		{ label: 'Jan', value: 1 },
		{ label: 'Feb', value: 2 },
		{ label: 'March', value: 3 },
		{ label: 'April', value: 4 },
		{ label: 'May', value: 5 },
		{ label: 'Jun', value: 6 },
		{ label: 'Jul', value: 7 },
		{ label: 'Aug', value: 8 },
		{ label: 'Sep', value: 9 },
		{ label: 'Okt', value: 10 },
		{ label: 'Nov', value: 11 },
		{ label: 'Dez', value: 12 }
	];

				<Dropdown
					value={this.state.selectedMonth}
					options={months}
					onChange={(e) => this.setSelectedMonth(e.value)}
					style={{ marginLeft: '15px', marginRight: '20px' }}
				/>

If you change the selection in the dropdown, the following error occurs: see screenshot

image

  • React version:
    16.2.0

  • PrimeReact version:
    3.0.0

  • Browser: [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]
    Chrome

  • Language: [all | TypeScript X.X | ES6/7 | ES5]
    all

@mertsincan mertsincan self-assigned this Feb 22, 2019
@mertsincan mertsincan added the Type: Bug Issue contains a defect related to a specific component. label Feb 22, 2019
@mertsincan mertsincan added this to the 3.1.1 milestone Feb 22, 2019
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