mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-23 08:58:26 +00:00
Hotfix : Table crashing on selecting a value using time only datepicker in add new row (#9975)
* fix : table crash on selecting time only datepicker sing add new row * fix : docs link in widget manager * fix : naming * chore : version bump
This commit is contained in:
parent
d245d170aa
commit
3f407530bd
5 changed files with 16 additions and 11 deletions
2
.version
2
.version
|
|
@ -1 +1 @@
|
|||
2.60.1
|
||||
2.60.2
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
2.60.1
|
||||
2.60.2
|
||||
|
|
|
|||
|
|
@ -222,7 +222,7 @@ export const Datepicker = function Datepicker({
|
|||
handleDateChange(date);
|
||||
}}
|
||||
value={isDateInputFocussed ? dateInputValue : computeDateString(date)}
|
||||
dateFormat={dateDisplayFormat}
|
||||
dateFormat={!isDateSelectionEnabled && isTimeChecked ? 'HH:mm' : dateDisplayFormat}
|
||||
customInput={
|
||||
<TjDatepicker
|
||||
dateInputRef={dateInputRef}
|
||||
|
|
|
|||
|
|
@ -455,17 +455,17 @@ export const Inspector = ({
|
|||
</div>
|
||||
</div>
|
||||
<span className="widget-documentation-link">
|
||||
<a
|
||||
href={`https://docs.tooljet.io/docs/widgets/${convertToKebabCase(componentMeta?.name ?? '')}`}
|
||||
target="_blank"
|
||||
rel="noreferrer"
|
||||
data-cy="widget-documentation-link"
|
||||
>
|
||||
<a href={getDocsLink(componentMeta)} target="_blank" rel="noreferrer" data-cy="widget-documentation-link">
|
||||
<span>
|
||||
<Student width={13} fill={'#3E63DD'} />
|
||||
<small className="widget-documentation-link-text">
|
||||
{t('widget.common.documentation', 'Read documentation for {{componentMeta}}', {
|
||||
componentMeta: componentMeta.name === 'ToggleSwitchLegacy' ? 'ToggleLegacy' : componentMeta.name,
|
||||
componentMeta:
|
||||
componentMeta.displayName === 'Toggle Switch (Legacy)'
|
||||
? 'Toggle (Legacy)'
|
||||
: componentMeta.displayName === 'Toggle Switch'
|
||||
? 'Toggle Switch'
|
||||
: componentMeta.component,
|
||||
})}
|
||||
</small>
|
||||
</span>
|
||||
|
|
@ -477,6 +477,11 @@ export const Inspector = ({
|
|||
</div>
|
||||
);
|
||||
};
|
||||
const getDocsLink = (componentMeta) => {
|
||||
return componentMeta.component == 'ToggleSwitchV2'
|
||||
? `https://docs.tooljet.io/docs/widgets/toggle-switch`
|
||||
: `https://docs.tooljet.io/docs/widgets/${convertToKebabCase(componentMeta?.component ?? '')}`;
|
||||
};
|
||||
|
||||
const widgetsWithStyleConditions = {
|
||||
Modal: {
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
2.60.1
|
||||
2.60.2
|
||||
|
|
|
|||
Loading…
Reference in a new issue