Semantic-Org/Semantic-UI · warning

The method you called is not defined

Error message

The method you called is not defined

What it means

Emitted by Checkbox's invoke() dispatcher (checkbox.js:730) when a string method name does not resolve to any property on the checkbox module instance — a typo or a method absent in this version. Unlike the dead-config modules, Checkbox actually logs this via module.error (checkbox.js:643), which is a bound console.error controlled by settings.silent. It is not a thrown exception.

Source

Thrown at src/definitions/modules/checkbox.js:819

  onEnable            : function(){},
  onDisable           : function(){},

  // preserve misspelled callbacks (will be removed in 3.0)
  onEnabled           : function(){},
  onDisabled          : function(){},

  className       : {
    checked       : 'checked',
    indeterminate : 'indeterminate',
    disabled      : 'disabled',
    hidden        : 'hidden',
    radio         : 'radio',
    readOnly      : 'read-only'
  },

  error     : {
    method       : 'The method you called is not defined'
  },

  selector : {
    checkbox : '.ui.checkbox',
    label    : 'label, .box',
    input    : 'input[type="checkbox"], input[type="radio"]',
    link     : 'a[href]'
  }

};

})( jQuery, window, document );

View on GitHub (pinned to 597843ab84)

Solutions

  1. Use a documented method: 'toggle', 'check', 'uncheck', 'indeterminate', 'determinate', 'enable', 'disable', 'refresh', etc.
  2. Verify the method exists in your installed Semantic UI version.
  3. Set silent:true only to hide the console noise after confirming it is benign.

Example fix

// before
$('.checkbox').checkbox('togglee'); // typo -> console.error
// after
$('.checkbox').checkbox('toggle');
Defensive patterns

Strategy: validation

Validate before calling

// Validate the method against the checkbox module before invoking.
var checkboxMethods = ['toggle','check','uncheck','indeterminate','determinate','enable','disable','set enabled','set checked','set unchecked','set indeterminate','set determinate','is radio','is checked','is unchecked','is indeterminate','is enabled','is disabled','refresh','destroy'];
function callCheckbox($el, method, args){
  if (checkboxMethods.indexOf(method) === -1) {
    throw new Error('Unknown checkbox method: ' + method);
  }
  return $el.checkbox(method, args);
}

Prevention

When it happens

Trigger: $('.checkbox').checkbox('togglee') (typo) or any string that fails the camelCase/dotted lookup against the module instance (checkbox.js:714-732).

Common situations: Misspelled method name, wrong-version docs, calling a method that belongs to a different module.

Related errors


AI-assisted analysis of Semantic-Org/Semantic-UI@597843ab84 (2026-08-13). Data as JSON: /api/errors/29eef5c7e0886da1. Report an issue: GitHub.