Skip to content
This repository was archived by the owner on May 4, 2019. It is now read-only.

Commit d29501d

Browse files
committed
fix(accessiblity): added code to update url
1 parent b4cf972 commit d29501d

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/ItemBank/ItemBankContainer.tsx

+5-4
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ import {
2323
existenceResponseModelToRevisionModel
2424
} from "@src/index";
2525
import { itemsAreEqual } from "@src/ItemBank/ItemBankModels";
26+
import { Accordion } from "gh-site/lib/src";
2627

2728
export interface ItemBankContainerProps {
2829
accessibilityClient: (
@@ -302,10 +303,10 @@ export class ItemBankContainer extends React.Component<
302303
handleUpdateIsaap = (accGroups: AccResourceGroupModel[]) => {
303304
const { currentItem } = this.state;
304305
if (currentItem) {
305-
const isaap = toiSAAP(accGroups);
306-
this.props.setUrl(currentItem);
307-
this.setState({ currentItem });
308-
this.bubbleEventHandler(currentItem, isaap);
306+
currentItem.isaap = toiSAAP(accGroups);
307+
this.setState({ currentItem }, () => {
308+
this.props.setUrl(currentItem);
309+
});
309310
}
310311
};
311312

0 commit comments

Comments
 (0)