Undo history resets after save

For me is not happening anymore since I don’t know when. It can be a bug that appears in some systems as I could drag and drop files to import before and now I can’t for what ever reason and I always have to use the import function.