Since the number element is now in core we should backport what got in.

Comments

ericduran’s picture

Status: Active » Needs review
StatusFileSize
new5.15 KB

I also took the 'number' element name space so it can match what's in core. I don't remember is another module had declared the element type and that's why we didn't use it. I'll have to do some searching.

ericduran’s picture

StatusFileSize
new5.66 KB

Actually this updates it with what is going to end up being after #1540174: Some attributes not allowed for the new HTML5 input elements.

dave reid’s picture

Status: Needs review » Fixed

I committed the patch with some additional backports to the range element, and left out adding a duplicate 'number' element for now. Let's open up a separate issue to discuss if we can avoid breaking any existing elements.

dave reid’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

luison99’s picture

Title: Update number element to match what is not in 8.x core. » How to allow decimal numbers using 'numberfield' elements?
Category: feature » support
Priority: Normal » Major
Status: Closed (fixed) » Active

Hi all,

I'm using elements module 'numberfield' field, but when i place a decimal value on it and i try to submit the form, validation tells me "Value not valid"!!

How can i avoid validation dor this specific field to allow decimal values?

Thanks a lot,
Luis.

Island Usurper’s picture

Title: How to allow decimal numbers using 'numberfield' elements? » Update number element to match what is not in 8.x core.
Category: Support request » Feature request
Priority: Major » Normal
Issue summary: View changes
Status: Active » Closed (fixed)

Please don't hijack issues. Make a new issue instead.