After more testing, I have an update: I have fixed it and created a new problem. I removed a keyUp event handler, which formats the text value of the TimeInput and sets my editorDataField correctly. Now I only listen for change and updateComplete events. Now, when I delete hours, minutes, or seconds and then move outside the itemEditor, it reverts to zero: Perfect.
However, I now find that if I make a change in the TimeInput and click outside (or tab or press enter), the value doesn't stick. It goes back to the old value. However, if I click within the TimeInput after making a change, it does. So, how does removing focus after making a change make me lose my value? Thanks, Matt --- In flexcoders@yahoogroups.com, "Matthew" <fume...@...> wrote: > > Hi -- > > I'm having problems using the Yahoo TimeInput component as an Item Editor. > I'm try to handle the situation when a user deletes numbers in the component > and then clicks outside. For example, deleting the '56' in seconds > > Example time: 12:22:56 > > Normally, the numbers reset to 0, which is what I expect. > > However, in an item editor, when you click outside, the numbers don't reset, > meaning they're just blank. As in, 12:22: > > I'm expecting: 12:22:00 > > Any ideas as to why this might be happening? I'm a bit perplexed. > > Thanks for any helpful tips, > > Matt >