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

feat(select-multiple): ECL v2 - dispatching change event on user selection - FRONT-2268 #2121

Merged
merged 3 commits into from
Jun 24, 2021

Conversation

planctus
Copy link
Collaborator

@planctus planctus commented Jun 22, 2021

At the moment there is no way to see this in action, if you want to test it you can add a function in preview-head.html in the storybook folder of the two systems with something like this:

document.addEventListener(
  'DOMContentLoaded',
  function () {
    var select = document.getElementById('select-multiple');
    if (select) {
      select.addEventListener(
        'change',
        () => {
          console.log('change!');
        },
        false
      );
    }
  },
  false
);

Mind that it would only work if you are already in the select multiple story..

@github-actions
Copy link

github-actions bot commented Jun 22, 2021

@emeryro emeryro merged commit 376cfd3 into v2-dev Jun 24, 2021
@emeryro emeryro deleted the front-2268-v2 branch June 24, 2021 11:06
@emeryro emeryro removed their assignment Jun 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants