sbb-design-systems / lyne-components

Components for Lyne Design System
https://lyne-storybook.app.sbb.ch
MIT License
43 stars 13 forks source link

[Bug]: SSR - <sbb-form-field-clear> not working as expected #2877

Closed feerglas closed 2 days ago

feerglas commented 5 days ago

Preflight Checklist

Bug type

Functionality

It affects the following packages

Components

Which version of Lyne Components are you using

1.2.1

Operating system

MacOS 14.3

Browser / Browser version

Chrome 125.0.6422.113

Input mode

None

Additional settings

No response

What happened?

sbb-form-field-clear is not working as expeceted after SSR:

Steps to reproduce the issue

open https://codesandbox.io/p/devbox/sbb-popover-hover-trigger-forked-j4wh22 make sure the server is running, otherwise run npm start on the terminal.

  1. observe that initially for the empty input field the clear-button is shown
  2. type something in the input field and click the clear-button -> Observe that the input is not cleared
  3. delete the characters from the input field until it is empty -> observe that the clear-button is still visible

Relevant log output

No response