Skip to content

blur #733

Description

@behel33

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"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions