diff --git a/src/components/brand/ArtikelMarkeNew.jsx b/src/components/brand/ArtikelMarkeNew.jsx index 2c1e309..3c61138 100644 --- a/src/components/brand/ArtikelMarkeNew.jsx +++ b/src/components/brand/ArtikelMarkeNew.jsx @@ -34,7 +34,6 @@ class ArtikelMarkeNew extends PureComponent { this.setState({ newName: next })} onKeyDown={(event) => { diff --git a/src/routes/artikel/marken.jsx b/src/routes/artikel/marken.jsx index 8321dc9..7a0f5fa 100644 --- a/src/routes/artikel/marken.jsx +++ b/src/routes/artikel/marken.jsx @@ -7,6 +7,7 @@ import BackendError from '../../components/BackendError'; import SearchIcon from '@mui/icons-material/Search'; import IconButton from '@mui/material/IconButton'; import ClearIcon from '@mui/icons-material/Clear'; +import SingleLineTextEdit from 'dashgui/SingleLineTextEdit'; import FillSpace from 'dashgui/FillSpace'; import { PanelTile, PanelTileGrid } from 'dashgui/panels'; import { backendErrorFrom } from '../../utils/backendError'; @@ -39,7 +40,7 @@ class ArtikelMarkenSearchField extends PureComponent { const { inputRef } = this.props; return ( - + - this.onInputChange(e.target.value)} - slotProps={{ - htmlInput: { - autoCapitalize: 'off', - autoCorrect: 'off', - }, - input: { - sx: { height: 40 }, - startAdornment: ( - - - - ), - endAdornment: ( - - this.clearInput()} - onMouseDown={(e) => e.preventDefault()} - aria-label="Suche löschen" - > - - - - ), - }, - }} + onChange={(next) => this.onInputChange(next)} />