feat: improve code
This commit is contained in:
parent
9560276fa1
commit
4f762cfe2e
@ -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>
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user