redfin / react-server

:rocket: Blazing fast page load and seamless navigation.
https://react-server.io/
Apache License 2.0
3.89k stars 184 forks source link

TODO if OSX && key is.Meta? #981

Open Qoyyuum opened 6 years ago

Qoyyuum commented 6 years ago

Not sure what I make of this but to clean up the TODO notes, please see if this issue can be resolved.

_onClick(e) {

        // TODO: if OSX && key.isMeta?
        if (!e.metaKey) {
            e.preventDefault();
            e.stopPropagation();
            const {bundleData, reuseDom} = this.props;
            navigateTo(this.props.path || this.props.href, {
                bundleData,
                reuseDom,
            });
            if (this.props.onClick) {
                this.props.onClick(e);
            }
        } else {
            // do normal browser navigate
        }
    }