{"record":{"id":"29eef5c7e0886da1","repo":"Semantic-Org/Semantic-UI","slug":"the-method-you-called-is-not-defined-29eef5","errorCode":null,"errorMessage":"The method you called is not defined","messagePattern":"The method you called is not defined","errorType":"console","errorClass":null,"httpStatus":null,"severity":"warning","filePath":"src/definitions/modules/checkbox.js","lineNumber":819,"sourceCode":"\n  onEnable            : function(){},\n  onDisable           : function(){},\n\n  // preserve misspelled callbacks (will be removed in 3.0)\n  onEnabled           : function(){},\n  onDisabled          : function(){},\n\n  className       : {\n    checked       : 'checked',\n    indeterminate : 'indeterminate',\n    disabled      : 'disabled',\n    hidden        : 'hidden',\n    radio         : 'radio',\n    readOnly      : 'read-only'\n  },\n\n  error     : {\n    method       : 'The method you called is not defined'\n  },\n\n  selector : {\n    checkbox : '.ui.checkbox',\n    label    : 'label, .box',\n    input    : 'input[type=\"checkbox\"], input[type=\"radio\"]',\n    link     : 'a[href]'\n  }\n\n};\n\n})( jQuery, window, document );\n","sourceCodeStart":801,"sourceCodeEnd":832,"githubUrl":"https://github.com/Semantic-Org/Semantic-UI/blob/597843ab84d565cccfd8fd7719416350ae73e734/src/definitions/modules/checkbox.js#L801-L832","documentation":"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.","triggerScenarios":"$('.checkbox').checkbox('togglee') (typo) or any string that fails the camelCase/dotted lookup against the module instance (checkbox.js:714-732).","commonSituations":"Misspelled method name, wrong-version docs, calling a method that belongs to a different module.","solutions":["Use a documented method: 'toggle', 'check', 'uncheck', 'indeterminate', 'determinate', 'enable', 'disable', 'refresh', etc.","Verify the method exists in your installed Semantic UI version.","Set silent:true only to hide the console noise after confirming it is benign."],"exampleFix":"// before\n$('.checkbox').checkbox('togglee'); // typo -> console.error\n// after\n$('.checkbox').checkbox('toggle');","handlingStrategy":"validation","validationCode":"// Validate the method against the checkbox module before invoking.\nvar 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'];\nfunction callCheckbox($el, method, args){\n  if (checkboxMethods.indexOf(method) === -1) {\n    throw new Error('Unknown checkbox method: ' + method);\n  }\n  return $el.checkbox(method, args);\n}","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Pin your Semantic UI version so the method set is stable.","Wrap third-party calls in a validated helper so typos fail in dev.","Use silent:true in production to suppress benign console.error output (checkbox.js:643)."],"tags":["checkbox","method-dispatch"],"backgroundTag":null,"analyzedSha":"597843ab84d565cccfd8fd7719416350ae73e734","analyzedAt":"2026-08-13T01:44:23.827Z","schemaVersion":2},"datasetVersion":"2026-08-13T04:17:16.726Z"}