mirror of
https://github.com/gristlabs/grist-core.git
synced 2026-03-02 04:09:24 +00:00
(core) Null or undefined value on the Integer / Numeric cell
Summary: Text editor for Integer and Numeric column was showing null or undefined when the underlying value was null. Test Plan: Browser test Reviewers: dsagal Reviewed By: dsagal Differential Revision: https://phab.getgrist.com/D2817
This commit is contained in:
@@ -1422,6 +1422,20 @@ export function hexToRgb(hex: string) {
|
||||
return `rgba(${r}, ${g}, ${b}, 1)`;
|
||||
}
|
||||
|
||||
/**
|
||||
* Adds new column to the table.
|
||||
* @param name Name of the column
|
||||
*/
|
||||
export async function addColumn(name: string) {
|
||||
await scrollIntoView(await driver.find('.active_section .mod-add-column'));
|
||||
await driver.find('.active_section .mod-add-column').click();
|
||||
await waitForServer();
|
||||
await waitAppFocus(false);
|
||||
await driver.sendKeys(name);
|
||||
await driver.sendKeys(Key.ENTER);
|
||||
await waitForServer();
|
||||
}
|
||||
|
||||
|
||||
} // end of namespace gristUtils
|
||||
|
||||
|
||||
Reference in New Issue
Block a user