openui5 icon indicating copy to clipboard operation
openui5 copied to clipboard

sap.m.InputType.Number causes getValue to return empty string when the value is alphanumeric

Open luciencooper opened this issue 11 years ago • 6 comments

I'm not sure if this is intended functionality, but you can close this immediately if it is.

When using the getValue() method on a sap.m.Input of type sap.m.InputType.Number it will return and empty string if alphanumeric characters are present.

Please see this example: http://jsbin.com/susuvukaru/4/edit?html,js,output

I would not have expected this, mainly because the numeric keyboard android uses allows input of:

.,-+SPACE

Also, on a PC you can type anything in you like.

luciencooper avatar Apr 02 '15 11:04 luciencooper

Hi Lucien, thanks for reporting. I forwarded this to the developer to verify this behavior. Best! Thilo

ghost avatar Apr 06 '15 20:04 ghost

@thilo-dev any update on this? And is there an internal incident?

matz3 avatar May 20 '15 13:05 matz3

We've run into this as well... Any news?

best regards, David

Pulvertoastmann avatar Jul 20 '15 14:07 Pulvertoastmann

Same issue also the control let user enter character 'e' as well

best regards, Jimmy

jimmyjoseph89 avatar Oct 24 '16 17:10 jimmyjoseph89

#1680298773 opened

Thanks and Kind Regards, Diana, SAPUI5 Dispatcher

DMihaylova avatar Dec 01 '16 13:12 DMihaylova

Hello @LucienCooper,

Thank you for the ticket! This is the expected behaviour. Anything that is not a number is invalid.

Best Regards, Gergana

GerganaKremenska avatar Dec 08 '16 15:12 GerganaKremenska