u
This commit is contained in:
@@ -37,6 +37,7 @@ class ArtikelLager extends PureComponent {
|
||||
};
|
||||
|
||||
handleBlur = () => {
|
||||
if (this.props.disabled) return;
|
||||
const item = this.props.warehouse ?? this.props.item;
|
||||
if (!item) return;
|
||||
const draft = this.state.draft.trim();
|
||||
@@ -60,6 +61,7 @@ class ArtikelLager extends PureComponent {
|
||||
}
|
||||
|
||||
handleKeyDown = (event) => {
|
||||
if (this.props.disabled) return;
|
||||
const item = this.props.warehouse ?? this.props.item;
|
||||
if (event.key === 'Enter') {
|
||||
event.preventDefault();
|
||||
@@ -73,6 +75,7 @@ class ArtikelLager extends PureComponent {
|
||||
};
|
||||
|
||||
handleDelete = () => {
|
||||
if (this.props.disabled) return;
|
||||
const item = this.props.warehouse ?? this.props.item;
|
||||
if (!item) return;
|
||||
if (!window.confirm(`Lager „${item.name}" wirklich löschen?`)) return;
|
||||
|
||||
Reference in New Issue
Block a user