-
Notifications
You must be signed in to change notification settings - Fork 842
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
ContextMenuPanel not updating when it should #674
Comments
@stacey-gammon As part of #584 (relevant discussion), I added the prop Example usage: <EuiContextMenuPanel
style={{ minWidth: 200 }}
items={items && items.length ? items.map(item => {
return (
<EuiTableSortMobileItem
key={item.key}
onSort={item.onSort}
isSorted={item.isSorted}
isSortAscending={item.isSortAscending}
>
{item.name}
</EuiTableSortMobileItem>
);
}) : null}
watchedItemProps={['isSorted', 'isSortAscending']}
/> |
Awesome, thanks @jen-huang I think that will work, will check it out! |
|
Using a form in panel.content doesn't update because shouldComponentUpdate returns false, even when content in the panel changes.
Need to dig further into this because a parents component not updating shouldn't reflect the child content from re-rendering, but when I forced this function to return true, everything worked. This is regarding elastic/kibana#17621, in which when I switched to the EUI version, the input text box doesn't work right. Worked fine with the kui version.
The text was updated successfully, but these errors were encountered: