Entering sales orders no longer works after upgrade to 10.0.5

After entering the first article, the input mask is broken

Dolibarr 10.0.5
PHP 7.x different versions
MariaDB

Thanks to fappels - works fine

Bug reported: https://github.com/Dolibarr/dolibarr/issues/12760

Quick fix:
Change core/class/html.formmargin.class.php line 101 into
if ($object->element == 'facture' && $object->type == $object::TYPE_SITUATION) {