React semantic-ui Dropdown onChange not working

前端 未结 2 433
忘了有多久
忘了有多久 2021-01-20 22:26

Here\'s the code:

class MenuContainerComponent extends Component {

    onInputWidgetMenuChange(event, data) {
        console.log(data);
    }

    render()         


        
2条回答
  •  被撕碎了的回忆
    2021-01-20 22:56

    AFAIK, since you're using Dropdown.Menu inside this Dropdown, the onChange won't work. It's for normal Drodowns (like selecting a value etc). Try creating a generic onClick and assign it to

提交回复
热议问题