feat: improve code

This commit is contained in:
chenos 2021-09-02 17:32:10 +08:00
parent 9560276fa1
commit 4f762cfe2e

View File

@ -536,7 +536,7 @@ Select.OptionTag = observer((props) => {
const { data, fieldNames } = useContext(OptionTagContext);
return (
<VisibleContext.Provider value={[visible, setVisible]}>
<Tag onClick={() => setVisible(true)}>{data[fieldNames.label]}</Tag>
<a onClick={() => setVisible(true)}>{data[fieldNames.label]}</a>
{props.children}
</VisibleContext.Provider>
);