Web: Components: fix handle

This commit is contained in:
Viktor Fomin 2022-02-03 16:10:03 +03:00
parent a477947042
commit 81d8d8fc09

View File

@ -40,6 +40,7 @@ const CodeInput = (props) => {
const target = e.target;
if (key === "Backspace") {
handleChange();
if (target.value === "" && target.previousElementSibling !== null) {
if (target.previousElementSibling !== null) {
if (e.target.previousElementSibling.nodeName === "HR") {