Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8426411
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T04:31:41+00:00 2026-06-10T04:31:41+00:00

I am using Backbone and Backbone.ModelBinder. I have a bunch of text fields that

  • 0

I am using Backbone and Backbone.ModelBinder.

I have a bunch of text fields that are bound via BackboneModelBinder. Everything works as expected however when I make a change to a text field and I don’t unfocus the field first (click off the input field) before hitting the SAVE button, I have to hit the Save button twice — once to unfocus the fields, and then a second time to actually fire the save button handler (which should have fired the first time)

(Save is a standard html button with a backbone event bound to it).

Does anyone have any knowledge of why this might be?

I hope this made sense 😐

Thanks for any help or direction

-Kirk

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T04:31:42+00:00Added an answer on June 10, 2026 at 4:31 am

    That’s because ModelBinder by default set the new value to the model’s attributes on “blur” or “change” events (it dependes on the input’s type). You can modify this behavior by changing the source code, adding keyup as binding event in those two methods:

        _bindViewToModel:function () {
            $(this._rootEl).delegate('', 'change keyup', this._onElChanged);
            // The change event doesn't work properly for contenteditable elements - but blur does
            $(this._rootEl).delegate('[contenteditable]', 'blur keyup', this._onElChanged);
        },
    
        _unbindViewToModel: function(){
            if(this._rootEl){
                $(this._rootEl).undelegate('', 'change keyup', this._onElChanged);
                $(this._rootEl).undelegate('[contenteditable]', 'blur keyup', this._onElChanged);
            }
        },
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using backbone with some nested models. I have a bunch of change handlers
I'm using backbone for an app that I'm building. In this app, I have
I am using backbone.js here is my scenario Lets say I have a view
I have been using Backbone.js to act as a middleman between Wordpress (using the
We are using Backbone.js to build client-side UI that manipulates models shared by multiple
I'm using backbone's underscore templating engine with the mustache formatting patterns. I have already
If I have done my homework correctly, I have come to learn that Backbone
I'm building an app using Brunch and Backbone.js that is to include nested menus.
I have a basic app set up using Backbone.js and Tornado Web. When I
I'm using backbone js with an xml api data feed. I have a top-level

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.