Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

End Adornments disappear from MultilineInput when max-height is set #4448

Open
4 of 11 tasks
tsveti22 opened this issue Nov 26, 2024 · 1 comment
Open
4 of 11 tasks
Labels
component: multiline input status: awaiting triage Automatically added to new issues. Should be removed once they have been triaged. type: bug 🪲 Something isn't working

Comments

@tsveti22
Copy link

Latest version

  • I have tested the latest version

Description

Given a multiline input with max-height and end adornments, as the user types more new lines into the input box and it reaches the max height, the end adornments disappear

Steps to reproduce

<MultilineInput endAdornment={<> <Text>GBP</Text> <Button appearance="transparent" aria-label="Reset"> <RefreshIcon aria-hidden /> </Button> <Button sentiment="accented" aria-label="Submit"> <SendIcon aria-hidden /> </Button> </>} style={{ maxWidth: "256px", maxHeight: "256px" }} defaultValue="Value" {...args} />

Expected behavior

When the height limit is reached, a scroll bar should appear, and the end adornment will stay fixed at the bottom.

Package name(s)

Core (@salt-ds/core)

Package version(s)

1.37.1

Browser

  • Chrome
  • Safari
  • Firefox
  • Microsoft Edge

Operating system

  • macOS
  • Windows
  • Linux
  • iOS
  • Android

Are you a JPMorgan Chase & Co. employee?

  • I am an employee of JPMorgan Chase & Co.
@tsveti22 tsveti22 added status: awaiting triage Automatically added to new issues. Should be removed once they have been triaged. type: bug 🪲 Something isn't working labels Nov 26, 2024
@origami-z
Copy link
Contributor

Use textAreaProps for height for now

      textAreaProps={
          {
            style: { maxHeight: '256px' },
          }
        }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: multiline input status: awaiting triage Automatically added to new issues. Should be removed once they have been triaged. type: bug 🪲 Something isn't working
Projects
Development

No branches or pull requests

2 participants