openui5 icon indicating copy to clipboard operation
openui5 copied to clipboard

DateRangeSelection + Date(Time)Interval: ParseException Causes Crash

Open boghyon opened this issue 8 years ago • 2 comments

URL (minimal example if possible):

https://jsbin.com/hacalon/edit?js,output

Steps to reproduce the problem:

  1. Open the above sample page.
  2. Type something arbitrary into the field, e.g. 1234141
  3. Click somewhere else to trigger value change.
  4. Try to open the Calendar.

What is the expected result?

The MessageManager generates the UI message and displays it on the DateRangeSelection with the "Error" state (red border).

What happens instead?

  • ParseException is not handled properly.
  • No error message in the UI but in the browser console.
  • Can't open the Calendar picker.

Causing LOC: https://github.com/SAP/openui5/blob/2e191909865dbb7300d605323276ecaad0b43eeb/src/sap.m/src/sap/m/DateRangeSelection.js#L512

Any other information? (attach screenshot if possible)

In the view definition, if <DateRangeSelection is replaced with <Input, the message is handled correctly.

sap m input dateinterval

boghyon avatar Nov 29 '18 14:11 boghyon

Hello @boghyon , Thank you for sharing this finding. I've created an internal incident 1870497631. The status of the issue will be updated here in GitHub. Regards, Georgi

GeorgiValkanov avatar Nov 30 '18 12:11 GeorgiValkanov

Hi @boghyon,

It's now fixed in master. Would you like to downport it in a concrete lower version?

Thanks & Regards, Diana (OPENUI5 control developer)

DMihaylova avatar Jan 23 '19 14:01 DMihaylova