Type Attribute is reserved

See Designer 14: “Known element reserved custom attribute names”

► [LIST] Feature Availability & Limits - Project settings - Forum | Webflow

The alternative is to use a JavaScript workaround to “convert” the field’s type on page load.

<script>
$('.number-field').attr('type', 'number');
</script>