RocketCommunicationsInc / astro

Astro UXDS is a collection of guidelines, patterns and components for designing space-based user interface applications.
https://astrouxds.com
Other
115 stars 25 forks source link

rux-input does not support handling onpaste #959

Closed raven2500 closed 1 year ago

raven2500 commented 1 year ago

Describe the bug The input element handles the onpaste event, but rux-input does not.

To Reproduce Steps to reproduce the behavior:

  1. added a rux-input field with (ruxinput)=onInput(). onInput is called when text is entered, but pasting text into the field does not trigger the onInput

Current behavior (ruxinput) is not triggered when a paste is done

Expected behavior onpaste would be available to handle a paste into the input field

Screenshots If applicable, add screenshots to help explain your problem.

CodeSandbox If applicable, please provide a CodeSandbox or other online code editor tool link that contains an example of the bug.

Environment (please complete the following information):

Additional context Add any other context about the problem here.

FMorrison87 commented 1 year ago

Hello @raven2500, thanks for bringing this to our attention. We will look into this promptly.

FMorrison87 commented 1 year ago

@raven2500 I reproduced this as best I could in an Angular sandbox: https://codesandbox.io/s/blazing-bush-js7spp From what I can see with the way I have it setup, the console log fires both when input is entered manually, and via paste. If possible, could you send along more context or a sandbox of your own for how this bug looks in your environment?

FMorrison87 commented 1 year ago

Closing this issue due to no more information from the original reporter.