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:
Kiran Ashok 2024-06-04 17:48:08 +05:30 committed by GitHub
parent d245d170aa
commit 3f407530bd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 16 additions and 11 deletions

View file

@ -1 +1 @@
2.60.1
2.60.2

View file

@ -1 +1 @@
2.60.1
2.60.2

View file

@ -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}

View file

@ -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: {

View file

@ -1 +1 @@
2.60.1
2.60.2