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

No Event Listeners Working #26

Closed
Tenurian opened this issue Jun 15, 2018 · 3 comments
Closed

No Event Listeners Working #26

Tenurian opened this issue Jun 15, 2018 · 3 comments

Comments

@Tenurian
Copy link

Tenurian commented Jun 15, 2018

I'm trying to get the event listener for onMouseUp so I can automatically export the html to my state, just in case the user navigates and returns they won't have to redesign everything. The problem I'm running into is literally none of the on{EVENT} handlers are even being added. I tried going into your code, and in index.js line 85 I added a console.log like this:
index.js:

     for (
       var _iterator = Object.entries(_this.props), 
       _isArray = Array.isArray(_iterator), _i = 0,
       _iterator = _isArray ? _iterator : _iterator[Symbol.iterator]();;
     ) {
        var _ref2;
        if (_isArray) {
          if (_i >= _iterator.length) break;
          _ref2 = _iterator[_i++];
        } else {
          _i = _iterator.next();
          if (_i.done) break;
          _ref2 = _i.value;
        }

        var _ref = _ref2;
        var key = _ref[0];
        var value = _ref[1];

        if (/^on/.test(key) && key != 'onLoad') {
          console.log(`adding event listener for ${key} : ${value}`) 
          // ^^ This is where the onEVENT handlers should be getting added, ^^
          // but they're not because this console.log isn't even getting called
          _this.addEventListener(key, value);
        }
      }

just to see if the onMouseUp (or onMouseOver, or any on event) would even be registered, but nothing is getting printed to the console, and all event handlers are never getting called.

@Tenurian
Copy link
Author

and of course for good measure, I tried almost every mouse and key event I could find, none of them are getting fired off

@adeelraza
Copy link
Contributor

@Tenurian Mouse and key events are not supported. Here is a list of supported events: http:https://docs.unlayer.com/events

@Tenurian
Copy link
Author

Tenurian commented Jun 29, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants