remove react-scroll-to-component

This commit is contained in:
Paul Chavard 2021-02-10 19:01:18 +01:00
parent 1c164c4376
commit df80f5681d
3 changed files with 4 additions and 61 deletions

View file

@ -1,4 +1,3 @@
import scrollToComponent from 'react-scroll-to-component';
import { debounce } from '@utils';
import {
createTypeDeChampOperation,
@ -53,8 +52,10 @@ function addTypeDeChamp(state, typeDeChamps, insertAfter, done) {
state.flash.success();
done();
if (insertAfter) {
scrollToComponent(insertAfter.target.nextElementSibling, {
duration: 300
insertAfter.target.nextElementSibling.scrollIntoView({
behavior: 'smooth',
block: 'start',
inline: 'nearest'
});
}
})