openui5 icon indicating copy to clipboard operation
openui5 copied to clipboard

sap.m.Input - "change" Listener

Open dvorpahl opened this issue 12 years ago • 3 comments

OpenUI5 version: "1.16.9" Browser/version (+device/version): w32/ "Google Chrome 33.0.1750.146 m"

Steps to reproduce the problem:

  1. used "sap.m.Input"
  2. with "change: fnChange" property
  3. js-console output: SyntaxError: Unexpected identifier
  4. test with "liveChange" works, but i just want to check on focus in/out

What is the expected result? attach event Listner for "change" events

What happens instead? Exception with hint: Unexpected identifier

dvorpahl avatar Mar 12 '14 13:03 dvorpahl

Hi Danilo,

I cannot reproduce this. Please provide an example. See http://jsbin.com/pohuvogu/1/edit?js,output for a working example with a change-callback.

Best regards, Jens

sirion avatar Mar 12 '14 14:03 sirion

Note: if the jsbin example does not work at all, clear your cache and try again. (and in IE9 it won't work anyway, due to its lack of CORS support)

(We just noticed an issue with the "Access-Control-Allow-Origin" headers in the deployed version of the sdk: they are not set when not required, but this response is still in the cache when they would be required...)

akudev avatar Mar 12 '14 14:03 akudev

thanks, works.

was real syntax error, but not validated / marked by eclipse.

dvorpahl avatar Mar 12 '14 15:03 dvorpahl