Skip to content
This repository has been archived by the owner on Mar 8, 2023. It is now read-only.

<bx-select> '@input' event does not work ('oninput' works, but not in Firefox). #665

Closed
rkgriff opened this issue Jul 7, 2021 · 0 comments
Assignees
Labels
adopter support bug Something isn't working dev Needs some dev work package: carbon web components severity 1 Affects major functionality, no workaround
Milestone

Comments

@rkgriff
Copy link

rkgriff commented Jul 7, 2021

Detailed description

Describe in detail the issue you're having.

I'm trying to get a 'selected' event to fire with '< bx-select >'. I worked with Anna Wen and she initially said I could use '@ input' as shown here:

inputHandler(event) {
   console.log(event.target);
 }
<bx-select @input=${this.inputHandler}></bx-select>

However, neither of us could get that to work. She said to try 'oninput' instead per this codesandbox example:
https://codesandbox.io/s/little-fire-pdjqc?file=/src/index.html

I was able to get that to work, except in Firefox. Anna confirmed it does NOT work in Firefox either.

Is this a feature request (new component, new icon), a bug, or a general
issue?

This is an issue. However, I would like to request that a 'selected' event fires with '< bx-select >', the same way it does with '< bx-checkbox >', '< bx-combo-box >', '< bx-dropdown >' and '< bx-radio-button-group >'.

Is this issue related to a specific component?

Yes, '< bx-select >'

What did you expect to happen? What happened instead? What would you like to
see changed?

At a minimum, I need the 'oninput' event to fire with '< bx-select >' in all browsers (i.e. - Firefox does not currently work). However, the best solution for me is what I mentioned above in support of a 'selected' event (i.e. - 'bx-select-selected').

What browser are you working in?

Chrome, Firefox, IE edge (issue with FF, not sure of all other browsers)

What version of Carbon Web Components are you using?

1.13.3

What offering/product do you work on? Any pressing ship or release dates we
should be aware of?

Fix Central web application. Function is required as part of Carbon migration from v18. Target before year end.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
adopter support bug Something isn't working dev Needs some dev work package: carbon web components severity 1 Affects major functionality, no workaround
Projects
None yet
Development

No branches or pull requests

6 participants