React onClick fails on mobile and on mobile phone simulator

  render () {
    let images = JSON.parse(this.props.problemDetails.images).map((item) =>(
      <div className="image-box" key={item.uid} onClick={() =>this.handlePreview(item)}>
        <img src={item.thumbUrl} alt={item.name} />
      </div>
    ))
  }
 handlePreview = (file) => {
    console.log(file)
    this.setState({
      previewImage: file.thumbUrl,
      previewVisible: true,
    });
  }
Mar.23,2021

image-box adds the following css attributes

cursor:'pointer'

reference from: https://stackoverflow.com/que.


Click events need to be passed in the component because the outer layer is react-bscroll,.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e5110e-450fc.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e5110e-450fc.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?