I have discovered a bug on a site that we produced and I cannot figure out how to:
- Debug using Instagram In App Web Viewer
- Why this bug exists?
Could this be an ES5/ES6 Babel compiling issue?
Issue
When visiting this website inside the iOS Instagram in app browser, any onClick events are not functioning.
App functions perfectly on mobile safari, desktop browsers.
Header ICON Code
<i className="fas fa-shopping-bag" onClick={() => this.props.activeCartDropdown()} />
<i className="fas fa-bars" onClick={() => this.props.activeHeaderDropdown()} />
FAQ Code
import React from 'react';
import PropTypes from 'prop-types';
import { Link, NavLink, withRouter } from 'react-router-dom';
import { connect } from 'react-redux';
import Bootstrap from 'bootstrap';
import Helmet from 'react-helmet';
import history from '/client/history';
class BrandAmbassadorFAQ extends React.Component {
constructor(props) {
super(props);
this.state = {
open: false
}
}
render() {
return (
<div className={`faq ${this.state.open}`} onClick={() => this.setState({ open: !this.state.open })}>
<div className="question">
{this.props.question}
</div>
<div className="answer">
{this.props.answer}
{this.props.image &&
<img src={this.props.image} className={`img-fluid ${this.props.image_size ? this.props.image_size : ''}`}/>
}
</div>
</div>
)
}
}
export default BrandAmbassadorFAQ;
App Details & Versions
Meteor 1.8.0.2
React 16.4.2
@babel/runtime 7.3.1