osstotalsoft / rocket-ui-ts

A collection of reusable and composable React components written in TypeScript built on top of Material UI Core V5
MIT License
19 stars 4 forks source link

TextField clear icon does not show when a custom end adornment is passed #84

Closed st-angelo closed 1 year ago

st-angelo commented 1 year ago

Latest version

Current behavior

When an end adornment is passed to a TextField, along with isClearable flag, the clear icon doesn't appear. This is because the custom end adornment overwrites the internal one with the clear functionality.

Expected behavior

The clear icon should still appear on the TextField, along with any other custom adornments.