{"record":{"id":"7fb7b0cc5ab1d51d","repo":"Semantic-Org/Semantic-UI","slug":"value-specified-is-above-100","errorCode":null,"errorMessage":"Value specified is above 100%","messagePattern":"Value specified is above 100%","errorType":"console","errorClass":null,"httpStatus":null,"severity":"warning","filePath":"src/definitions/modules/progress.js","lineNumber":892,"sourceCode":"  total          : false,\n  value          : false,\n\n  // delay in ms for fail safe animation callback\n  failSafeDelay : 100,\n\n  onLabelUpdate : function(state, text, value, total){\n    return text;\n  },\n  onChange      : function(percent, value, total){},\n  onSuccess     : function(total){},\n  onActive      : function(value, total){},\n  onError       : function(value, total){},\n  onWarning     : function(value, total){},\n\n  error    : {\n    method     : 'The method you called is not defined.',\n    nonNumeric : 'Progress value is non numeric',\n    tooHigh    : 'Value specified is above 100%',\n    tooLow     : 'Value specified is below 0%'\n  },\n\n  regExp: {\n    variable: /\\{\\$*[A-z0-9]+\\}/g\n  },\n\n  metadata: {\n    percent : 'percent',\n    total   : 'total',\n    value   : 'value'\n  },\n\n  selector : {\n    bar      : '> .bar',\n    label    : '> .label',\n    progress : '.bar > .progress'\n  },","sourceCodeStart":874,"sourceCodeEnd":910,"githubUrl":"https://github.com/Semantic-Org/Semantic-UI/blob/597843ab84d565cccfd8fd7719416350ae73e734/src/definitions/modules/progress.js#L874-L910","documentation":"set.barWidth() (progress.js:401-416) treats its argument as a percentage: if value > 100 it logs error.tooHigh (progress.js:402-403) and does not set the width. The bar width expects a 0–100 percent, so anything above 100 is rejected for this setter.","triggerScenarios":"Calling $('.progress').progress('set bar width', 150) or .progress('set bar width', someNumber) where someNumber > 100. Note this is the barWidth setter specifically; the higher-level 'set progress'/'set value' normalizes against total via normalizedValue and does not log this.","commonSituations":"Confusing absolute value with percent (passing a raw value when a percent is expected); calling set bar width directly with a computed ratio that exceeds 100 due to rounding; mixing total-based and percent-based APIs.","solutions":["Pass a 0–100 percent to 'set bar width'.","Prefer 'set progress'/'set value' with a total so the module computes and clamps the percent for you.","Clamp manually: Math.min(100, Math.max(0, value)) before calling set bar width."],"exampleFix":"// before\n$('.ui.progress').progress('set bar width', doneCount); // doneCount = 150 -> [97]\n\n// after\n$('.ui.progress').progress({ total: totalCount });\n$('.ui.progress').progress('set progress', doneCount); // module normalizes to a valid percent","handlingStrategy":"validation","validationCode":"var pct = Math.min(100, Math.max(0, Number(value)));\nif (Number(value) > 100) console.warn('barWidth clamped from', value);\n$('.ui.progress').progress('set bar width', pct);","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Pass only 0–100 to 'set bar width'.","Prefer 'set progress' with a total so the module normalizes.","Clamp computed ratios before calling the setter."],"tags":["progress","range","percent","semantic-ui","console-error"],"backgroundTag":null,"analyzedSha":"597843ab84d565cccfd8fd7719416350ae73e734","analyzedAt":"2026-08-13T01:44:23.827Z","schemaVersion":2},"datasetVersion":"2026-08-13T04:17:16.726Z"}