Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

onClick event donot work #28

Closed
HouJushang opened this issue Aug 26, 2016 · 1 comment
Closed

onClick event donot work #28

HouJushang opened this issue Aug 26, 2016 · 1 comment
Labels

Comments

@HouJushang
Copy link

onClick event donot work

<ReactIScroll iScroll={iscroll}>
                        <ul>
                            {this.props.data.trainListFilter.map((object, i) => {
                                return <li onClick={this.toDetail} key={i}>
                                    {object.train_code} <br/>
                                    出发站:{object.from_station_name} <br/>
                                    终点站: {object.to_station_name} <br/>
                                    出发时间:{object.start_time} <br/>
                                    到达时间:{object.arrive_time}<br/>
                                    历时: {object.run_time} <br/>
                                    {
                                        object.ticketinfo.map((ticketObject, i)=> {
                                            return <span
                                                key={i}>{ticketObject.ticket_name}{ticketObject.ticket_price}元</span>
                                        })
                                    }
                                    <hr/>
                                </li>
                            },this)}
                        </ul>
                    </ReactIScroll>
@schovi
Copy link
Owner

schovi commented Aug 29, 2016

@HouJushang Check official readme and options.click I guess it should do the job http://iscrolljs.com/

@schovi schovi added the invalid label Nov 1, 2016
@schovi schovi closed this as completed Nov 1, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants