inviton-powerduck 0.0.221 → 0.0.222

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -131,7 +131,7 @@ class RadioButtonGroupComponent extends TsxComponent<RadioButtonGroupArgs> imple
131
131
  opts.forEach((item) => {
132
132
  retVal.push({
133
133
  id: this.getReflectedRowValue(item, true),
134
- text: this.customRenderOption != null ? this.handleCustomRenderResult(h, this.customRenderOption(h, item)) : this.getReflectedRowValue(item, false),
134
+ text: this.getReflectedRowValue(item, false),
135
135
  dataRow: item,
136
136
  });
137
137
  });
@@ -141,7 +141,7 @@ class RadioButtonGroupComponent extends TsxComponent<RadioButtonGroupArgs> imple
141
141
  return retVal;
142
142
  }
143
143
 
144
- private handleCustomRenderResult(h: any, renderResult: any): string {
144
+ private handleCustomRenderResult(renderResult: any): string {
145
145
  if (renderResult == null) {
146
146
  return '';
147
147
  }
@@ -226,6 +226,7 @@ class RadioButtonGroupComponent extends TsxComponent<RadioButtonGroupArgs> imple
226
226
  const nameId = `iei-group-${PortalUtils.randomString(6)}`;
227
227
  const selectedItem = this.getSelectedItem(h);
228
228
  const isSmall = this.radioButtonSize === RadioButtonSize.Small;
229
+ const hasCustomRender = this.customRenderOption != null;
229
230
 
230
231
  return (
231
232
  <div class="radio-group-wrap">
@@ -257,7 +258,9 @@ class RadioButtonGroupComponent extends TsxComponent<RadioButtonGroupArgs> imple
257
258
  onChange={() => this.handleRadioValueChanged(h)}
258
259
  />
259
260
  <label class="form-check-label" for={uuid}>
260
- <HtmlLiteral innerHTML={optionItem.text} />
261
+ {hasCustomRender
262
+ ? this.customRenderOption(h, optionItem.dataRow)
263
+ : <HtmlLiteral innerHTML={this.handleCustomRenderResult(optionItem.text)} />}
261
264
  </label>
262
265
  </div>
263
266
  </div>
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "inviton-powerduck",
3
3
  "type": "module",
4
- "version": "0.0.221",
4
+ "version": "0.0.222",
5
5
  "files": [
6
6
  "app/",
7
7
  "common/",