Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

blur #733

Open
behel33 opened this issue Jan 20, 2019 · 3 comments
Open

blur #733

behel33 opened this issue Jan 20, 2019 · 3 comments

Comments

@behel33
Copy link

behel33 commented Jan 20, 2019

I'm submitting a bug report

Please tell us about your environment:

  • Operating System:
    Windows 10

  • Node Version:
    68.11.3

  • NPM Version:
    6.6.0

  • Browser:
    Firefox 64.02

  • Language:
    ESNext

Current behavior:

Create a value converter 馃憤

export class AddStringValueConverter {
  toView(value, string) {
  	let s = ""+value+string;
  	console.log("add-string :",value+"=>"+""+s);
	  return s;
  }  
}

Create a template 馃憤

<template>
<input  value.bind="test  | addString : '.00' & updateTrigger:'blur'" />
<input >
</template>

now input "2" un first field, then puche "tab" (it display "2.00")
then push "Shift+Tab", input "2"
then it display "2" and not "2.00" !!

  • What is the expected behavior?
    showing "2.00" and not "2"
@bigopon
Copy link
Member

bigopon commented Jan 21, 2019

@behel33 Thanks for creating the issue, I couldn't recreate the behavior you described, can you help fix this codesandbox https://codesandbox.io/s/x761qq5p3q

@behel33
Copy link
Author

behel33 commented Feb 9, 2019

Sorry to answer so late. ;-)
In your https://codesandbox.io/s/x761qq5p3q under chromium the bug is present.
Chromium : Version 70.0.3538.102 (Build officiel) (64 bits) Windows 10 Pro.
To get the bog ,input keys like this :
input "45"
input key TAB => here it become "45.00", and cursor is on second field
input keys SHIFT+TAB => cursor go to first fiels and "45" is selected
input "45"
input key TAB => cursor go to second field, and "45" was not converted in "45.00"

@EisenbergEffect
Copy link
Contributor

Closing per information on #739

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants