I have a list of event titles, and when you click one it opens an AntD Modal. When I close the modal I want the focus to be on the event that I clicked on to open the modal. Since version 4.9.0 AntD Modal seems to have a property called focusTriggerAfterClose which I have set to true, however there does not seem to be any focus after I close the modal window even though I am using version 4.10.0. Does anyone have a working example?
If that doesn't work I thought I could store the trigger element name in state when I click each event, and then manual set focus to that element when I close the Modal window, but I'd rather not if the AntD component should do this anyway.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…