Skip to content

Binding not working  #5

@kimosabi77

Description

@kimosabi77

Binding value works on the way in, but not out back to the viewmodel.

I created a workaround, as the publishes: 'value' wasn't working.

Ext.define('Ext.field.TagField', {
.......
   xvalue:null,

   /**
    * @cfg publishes
    * @inheritdoc
    */
   defaultBindProperty: 'xvalue',
   publishes: 'xvalue',
....

then in onSelect and onDeselect, add these after this.validate();

this.setXvalue(this.getValue());

After I did that, binding working fine.

Related fiddle i found the workaround from - https://fiddle.sencha.com/#view/editor&fiddle/1t1e

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