carbon-web-components icon indicating copy to clipboard operation
carbon-web-components copied to clipboard

add "change" event for <bx-input>

Open wnwaynelee opened this issue 2 years ago • 0 comments

The problem

I am replacing <input type="text"> with <bx-input>. The UI renders fine. But <bx-input> seems to have "input" event only and not "change" event. You can test with the html file in test.zip.

When I inspect the DOM, I can see <bx-input> is backed by <input type="text">. The "input" event is good for implementing typeahead. For most cases, the "change" event is probably more useful/efficient.

The solution

Please add "change" event for <bx-input>. Please check other input backed by <input type="text"> and <textarea>, e.g. number input, text area input, .... Thanks.

Application/website

IBM

Business priority

High Priority = pressing release

What time frame would this ideally be needed by (if applicable)

No response

Examples

No response

Code of Conduct

wnwaynelee avatar Jul 25 '22 21:07 wnwaynelee