我有一个简单的按钮
// Write gunzipped data to a Writer
func gunzipWrite(w io.Writer, data []byte) error {
// Write gzipped data to the client
gr, err := gzip.NewReader(bytes.NewBuffer(data))
defer gr.Close()
data, err = ioutil.ReadAll(gr)
if err != nil {
return err
}
w.Write(data)
return nil
}
同时具有正在监听文档事件的Observable
<div onClick={(e)=>{e.preventDefault(); console.log('click');
this.props.continue()} } className={'previous'}>
Continue from where you left off? <FiChevronRight/></div>
该按钮没有听到点击,它从不触发。.我检查了CSS,我认为它是Observable。如何停止可观察对象捕获点击?