Skip to content

Commit

Permalink
fix(EditInPlace): focus and style issue (carbon-design-system#6146)
Browse files Browse the repository at this point in the history
  • Loading branch information
anamikaanu96 authored Oct 3, 2024
1 parent 00a472f commit 831a0bc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ $carbon-input: #{$carbon-prefix}--text-input;
}

.#{$block-class}--focused {
border: 2px solid $focus;
background: $field-01;
outline: 2px solid $focus;
}

.#{$block-class}__text-input {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,7 @@ export let EditInPlace = forwardRef<HTMLDivElement, EditInplaceProps>(
setInitialValue(value);
setDirtyInput(false);
onSave();
setFocused(false);
};

const onCancelHandler = () => {
Expand Down

0 comments on commit 831a0bc

Please sign in to comment.