hof 20.2.2 → 20.2.3
Sign up to get free protection for your applications and to get access to all the features.
@@ -265,6 +265,7 @@ module.exports = function (options) {
|
|
265
265
|
let toggle;
|
266
266
|
let child;
|
267
267
|
let optionHint;
|
268
|
+
let useHintText;
|
268
269
|
|
269
270
|
if (typeof obj === 'string') {
|
270
271
|
value = obj;
|
@@ -275,6 +276,7 @@ module.exports = function (options) {
|
|
275
276
|
label = obj.label || 'fields.' + key + '.options.' + obj.value + '.label';
|
276
277
|
toggle = obj.toggle;
|
277
278
|
child = obj.child;
|
279
|
+
useHintText = obj.useHintText;
|
278
280
|
optionHint = obj.hint || 'fields.' + key + '.options.' + obj.value + '.hint';
|
279
281
|
}
|
280
282
|
|
@@ -293,7 +295,7 @@ module.exports = function (options) {
|
|
293
295
|
radioOption: opts.type === 'radio',
|
294
296
|
toggle: toggle,
|
295
297
|
child: child,
|
296
|
-
optionHint: conditionalTranslate(optionHint) || ''
|
298
|
+
optionHint: useHintText ? optionHint : conditionalTranslate(optionHint) || ''
|
297
299
|
};
|
298
300
|
}, this),
|
299
301
|
className: classNames(field),
|