I am working on a website that auto populates search result in a table after user entered some text in the input text box (similar to google instant search).
I managed to get knockout js to update view model as user enters information by adding
valueUpdate: 'afterkeydown'
into my data-bind attribute, however, I also need to handle the case where user right click and paste some text into the textbox so I tried:
valueUpdate: ['afterkeydown','mouseup']
but that didn't work and when I tried to read the value of the text box through the view model I kept getting the old value until I tab out of the input text box.
Anyone know how can I fix this?
Oscar