mikegiddens
10-04-2007, 11:08 PM
I was using the searchfield plugin and found a flaw that I think should be changed.
Problem: Store is called before the value is cleared out.
I was doing a store / beforeload and was doing a searchField.getValue() and was still getting the value but based on the below snippt.
L24: this.store.reload({params:o});
L25: this.el.dom.value = '';
If you flipflop the 2 statements to below the problem does not occur as it should:
L24: this.el.dom.value = '';
L25: this.store.reload({params:o});
I did not know where else to put this so if you don't consider this a bug.
-Mike
Problem: Store is called before the value is cleared out.
I was doing a store / beforeload and was doing a searchField.getValue() and was still getting the value but based on the below snippt.
L24: this.store.reload({params:o});
L25: this.el.dom.value = '';
If you flipflop the 2 statements to below the problem does not occur as it should:
L24: this.el.dom.value = '';
L25: this.store.reload({params:o});
I did not know where else to put this so if you don't consider this a bug.
-Mike