-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
TypeError: Cannot read property method of undefined + onSelectionChanged + office-ui-fabric-react/lib/Dropdown #16647
Comments
Thanks for taking the time to enter an issue. However, it seems that there aren't enough details here for this issue to be actionable. When issues are created, we need details such as:
Without a clear understanding of these details, it's not possible to take clear action on issues. We are unable to meet your expectations, properly address the root cause, and make changes without affecting the expectations of other consumers. Please provide these additional details as you are able. The default issue template provides an outline of these details and is viewable when creating a new issue. Additionally, if this is an accessibility issue, please see Accessibility Troubleshooting in our wiki for more guidance. If these details cannot be provided, please kindly close the issue. Thank you for your patience. |
Please find below the details. If more informations required, please let me know.
https://developer.microsoft.com/en-us/fluentui#/controls/web/dropdown Facing issue in Onchange of the dropdown
SharePoint Online has list of dropdown. Onchange of that dropdown value triggers an api call (method) and getting the error message - cannot read the property. Tried the options like autobind. Still no luck. https://1drv.ms/u/s!Avq9uGI4OfVxbDCfcNqwkV1F1VI?e=1qo0Gn
Please refere the above links. None of the method are working inside onselectionchanged of dropdown. Throws an error cannot read the property
Expects method execution under onselectionchanged of dropdown
|
Any update please |
Gentle ping that this issue needs attention. |
@sparx2020 - thank you for the feedback. We will schedule this for further investigations. @tomi-msft - Would you be able to confirm if this is a regression, or if this behavior is an issue? |
Because this issue has not had activity for over 150 days, we're automatically closing it for house-keeping purposes. Still require assistance? Please, create a new issue with up-to date details. |
Unable to call method in onSelectionChanged Method of Fluent UI Dropdown (TypeError: Cannot read property method of undefined + onSelectionChanged + office-ui-fabric-react/lib/Dropdown).
Screenshot
https://1drv.ms/u/s!Avq9uGI4OfVxat1y30B9jsCbC4g?e=BORWvq
Method getMytodolistId is called inside onSelectionChanged
this.getMytodolistId(PageContext,strUserEmail,generalTaskId).then((itemId:number) => {
console.log(itemId);
});
The text was updated successfully, but these errors were encountered: