Skip to Main Content

DevOps, CI/CD and Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Oj-input-Text, Strange behaviour (with data-bind)

Fabio EmpadinhasMar 14 2019 — edited Mar 15 2019

Hello, so i have 2 questions about Oj-input-text, i decided to create only one post to avoid spam because they are related.

i started working with knockout and JET for 3 weeks now.

So i found this strange behavior:

Happens when i use 'data-bind' in the oj-input-text

https://gyazo.com/b07331f596a57c3bb9dcbd1da05cb6ad

So the observable is not updating at first but if i click outside the input and back in it, and i write it updates to the value before i wrote

is this a bug or there is a fix (or am i doing something wrong??)?

So my second question is, {{...}} on a oj-input-text is equivalent to data-bind="value: ..." on a normal input html, but since knockout 3.2 there is something called textinput (or textInput) which has Immediate updates and Browser event quirks handling create to handle text.

my question is: how i use textInput with oj-input-text since data-bind has a really strange behavior with it (and doesn't work)? if someone could answer this i would be happy.

https://gyazo.com/09dd7708404a65e88d05921665cf51ad

the fiddle i used to make the gifs:

https://jsfiddle.net/Empadinhas/hmsqbc50/27/

Cumps Fábio

This post has been answered by John JB Brock-Oracle on Mar 14 2019
Jump to Answer
Comments
Post Details
Added on Mar 14 2019
3 comments
243 views