vaadin / vaadin-text-field

The themable Web Component providing input controls. Part of the Vaadin components.
https://vaadin.com/components
Apache License 2.0
25 stars 23 forks source link

fix: position the material text-area bottom bar (CP) #589

Closed tomivirkki closed 2 years ago

tomivirkki commented 2 years ago

Backport https://github.com/vaadin/web-components/pull/3359 for Vaadin 14

StainlessSteelRat commented 2 years ago

This seems to break wheel scrolling a container which has a text-area inside it. If the mouse pointer is over the text-area, then the container won't scroll. I guess this is because the textarea is consuming the scroll event. (If the mouse pointer is over anywhere else on the container or other componet in the container, then scrolling works fine.)

tomivirkki commented 2 years ago

Hi @StainlessSteelRat, yeah it's the e.preventDefault() in the new "wheel" event listener that causes it. We should change it so that the event gets canceled only if the text area's scroll position changes. Please report as a new issue in https://github.com/vaadin/web-components