···114114 if (!prevBlock) return;
115115}
116116117117+let debounced: null | number = null;
117118async function Backspace({
118119 e,
119120 props,
···140141 // ...and areYouSure state is false, set it to true
141142 if (!areYouSure) {
142143 setAreYouSure(true);
144144+ debounced = window.setTimeout(() => {
145145+ debounced = null;
146146+ }, 300);
143147 return;
144148 }
145149 // ... and areYouSure state is true,
···147151 // if there is a page to close, close it and remove the block
148152 if (areYouSure) {
149153 e.preventDefault();
154154+ if (debounced) {
155155+ window.clearTimeout(debounced);
156156+ debounced = window.setTimeout(() => {
157157+ debounced = null;
158158+ }, 300);
159159+ return;
160160+ }
150161 return deleteBlock([props.entityID].flat(), rep);
151162 }
152163 }