_doBlur error on custom component

asked 2014-11-20 05:52:12 +0800

JustinFrost gravatar image JustinFrost
139 1 6

I have created a custom component which is a replacement for the zul.inp.Textbox. Every time I leave a page with this component on it it throws an error in the red box:

"Failed to mount: Listener _doBlur not found in foo.bar.inp.Textbox"

Which is correct as the function is never references. If I add the _doBlur function the error goes away, but this is not an ideal solution.

The Textbox is defined as follows:

foo.bar.inp.Textbox = zk.$extends(zul.inp.InputWidget,{


bind_: function () {
    this.$supers('bind_', arguments);
    this.domListen_(this.$n(), "onBlur","doBlur_"); 

unbind_: function () {
    this.domUnlisten_(this.$n(), "onBlur");
    this.$supers('unbind_', arguments);

doBlur_: function (evt) {
    if (!this._disabled) {
    if (this.isRequired()){
        if (this.desktop) 
        this.markAsInvalid(this.getInputValue().trim() == '');
    return this.$supers('doBlur_', arguments);
delete flag offensive retag edit
Be the first one to answer this question!
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

1 follower



Asked: 2014-11-20 05:52:12 +0800

Seen: 4 times

Last updated: Nov 20 '14

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More