{"record":{"id":"b346caaf17fa6251","repo":"Semantic-Org/Semantic-UI","slug":"the-method-you-called-is-not-defined-b346ca","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/dropdown.js","lineNumber":3797,"sourceCode":"\n  /* Component */\n  name           : 'Dropdown',\n  namespace      : 'dropdown',\n\n  message: {\n    addResult     : 'Add <b>{term}</b>',\n    count         : '{count} selected',\n    maxSelections : 'Max {maxCount} selections',\n    noResults     : 'No results found.',\n    serverError   : 'There was an error contacting the server'\n  },\n\n  error : {\n    action          : 'You called a dropdown action that was not defined',\n    alreadySetup    : 'Once a select has been initialized behaviors must be called on the created ui dropdown',\n    labels          : 'Allowing user additions currently requires the use of labels.',\n    missingMultiple : '<select> requires multiple property to be set to correctly preserve multiple values',\n    method          : 'The method you called is not defined.',\n    noAPI           : 'The API module is required to load resources remotely',\n    noStorage       : 'Saving remote data requires session storage',\n    noTransition    : 'This module requires ui transitions <https://github.com/Semantic-Org/UI-Transition>'\n  },\n\n  regExp : {\n    escape   : /[-[\\]{}()*+?.,\\\\^$|#\\s]/g,\n    quote    : /\"/g\n  },\n\n  metadata : {\n    defaultText     : 'defaultText',\n    defaultValue    : 'defaultValue',\n    placeholderText : 'placeholder',\n    text            : 'text',\n    value           : 'value'\n  },\n","sourceCodeStart":3779,"sourceCodeEnd":3815,"githubUrl":"https://github.com/Semantic-Org/Semantic-UI/blob/597843ab84d565cccfd8fd7719416350ae73e734/src/definitions/modules/dropdown.js#L3779-L3815","documentation":"Same invoke() pattern as the other modules: you called .dropdown('methodName') and the lookup found no matching behavior on the module object. Logged via console.error prefixed 'Dropdown:'.","triggerScenarios":"Typo such as .dropdown('setSelected','x') (wrong camelCase — the API uses dotted 'set selected'), or a behavior removed/renamed in this version.","commonSituations":"Version skew where a method was renamed; wrong call signature; calling a private method name.","solutions":["Verify the behavior against the dropdown API: 'set selected', 'get value', 'show', 'hide', 'clear', 'destroy', etc.","Use the documented dotted form exactly ('set selected', not 'setSelected')"],"exampleFix":"// before\n$('select').dropdown('setSelected', 'x');\n// after\n$('select').dropdown('set selected', 'x');","handlingStrategy":"validation","validationCode":"var DROPDOWN_BEHAVIORS = ['set selected','get value','get text','set value','show','hide','toggle','clear','refresh','destroy','set exactly','restore defaults','remove selected'];\nfunction isKnownDropdownBehavior(name) {\n  return DROPDOWN_BEHAVIORS.indexOf(name) !== -1;\n}\nif (isKnownDropdownBehavior(behavior)) {\n  $('select').dropdown(behavior);\n}","typeGuard":"function isDropdownBehavior(name) {\n  return typeof name === 'string' && /^(set|get|remove|restore) [a-z]+( [a-z]+)?$|^(show|hide|toggle|clear|refresh|destroy)$/.test(name);\n}","tryCatchPattern":null,"preventionTips":["Use the documented dotted/quoted behavior strings ('set selected', not 'setSelected')","Wrap dropdown behavior calls in a typed helper so typos fail at compile time","Pin your Semantic UI version and re-check behavior names after upgrades"],"tags":["dropdown","semantic-ui","api-misuse","typo"],"backgroundTag":null,"analyzedSha":"597843ab84d565cccfd8fd7719416350ae73e734","analyzedAt":"2026-08-13T01:44:23.827Z","schemaVersion":2},"datasetVersion":"2026-08-13T04:17:16.726Z"}