Commit Graph

396 Commits

Author SHA1 Message Date
bofeiw
9999066487 Merge pull request #1254 from rjackson/fix-safari-blanking-number-on-decimals
Fix Safari turning decimal number inputs to 0
2023-05-16 02:30:47 +07:00
Rob Jackson
a57848432e Apply Safari number fixes to Percentage 2023-05-14 13:49:12 +01:00
Rob Jackson
40477f7a36 Cast number inputs before save 2023-05-14 13:46:08 +01:00
Rob Jackson
65686d80e0 Fix number inputs on SideDrawerField 2023-05-14 13:30:44 +01:00
Shams
cbeeb4997c Merge branch 'develop' into ui-bug-fixes 2023-05-10 17:04:57 +02:00
Rob Jackson
a292667c92 Fix Safari turning decimal number inputs to 0
Chrome has some slightly unique input[type="number"] handling behaviour, where it restricts the characters that can be typed to numeric characters. Under-the-hood, Chrome withholds certain invalid input states from being emitted as change events – so we only receive change events for valid numbers.

Safari behaves slightly differently. It allows any characters to be entered and emits a change event on each character press, but its internal "value" is only set if the typed input is a valid number. The change events then either come through with a numeric value represented, or as an empty string.

For example, when typing "12.34" we receive onChange events with "1", "12", "", "12.3", and "12.34".

On that third onChange event when we pass "" up to React, React happily ignores the change (I _think_ bceause the incoming value "" already matches the element's value of ""; nonetheless, React have solved this issue for us).

When we parse the input via `Number(v)` we encounter problems. `Number("")` resolves to `0`, React sets the input's value to `0`, and the user is therefore unable to type decimal values successfully.

The solution for this is not to cast to a number at all. We'll rely on default browser behaviour to manage the input for us (allowing users to enter invalid characters), but we're still safe because the element's internal state will always be numeric.

In the scenario that a customer does try enter an invalid input "abc123", the input field simply blanks itself when they leave it.
2023-05-10 15:24:25 +01:00
Anish Roy
c688be3881 feat: Array value formatted on display cells 2023-05-05 16:44:22 +05:30
Anish Roy
3a3f4656bc fix: Action button on table with frozen column, floats with high z index 2023-05-05 15:50:24 +05:30
Anish Roy
20f54ed3b0 fix: JSON column configuration overlapping fields 2023-05-05 15:44:41 +05:30
Shams
9c6bae2dcb Merge branch 'develop' into status-bug-fix 2023-05-04 19:31:38 +02:00
alceil
60d4213b43 Fix label not showing in status type 2023-05-03 20:09:26 +05:30
mnmt7
2715a8094a Implement and Add SideDrawerField for Formula Field (#1225)
* Implement and Add SideDrawerField for Formula Field

* Modify Formula SideDrawerField to use already calculated value

* fix unneccessary db update on formula calculations

---------

Co-authored-by: Han Tuerker <burhan.tuerker@gmail.com>
2023-05-02 02:29:02 +03:00
mnmt
b7d661eaef add hotkey and right-click context copy functionality to fields 2023-04-30 14:58:40 +05:30
shamsmosowi
d302dace85 remove comment for function body restriction 2023-04-29 21:02:47 +02:00
shamsmosowi
cbabc8d0c2 array subTable 2023-04-24 23:30:57 +02:00
Anish Roy
39f8926dae description 2023-04-21 14:01:35 +05:30
Anish Roy
65dbc1876f Merge branch 'develop' into new-field-subtable-array 2023-04-21 12:24:21 +05:30
shamsmosowi
40bb8a8158 support nested field parent label 2023-04-20 15:45:14 +02:00
shamsmosowi
3fc5b13f06 Merge branch 'develop' of https://github.com/rowyio/rowy into develop 2023-04-20 10:46:25 +02:00
shamsmosowi
1c95fe6b50 allow single/multiselect to be copy/pasted 2023-04-20 10:46:16 +02:00
Shams
9f62c21377 Merge pull request #1208 from rowyio/yaman/esm
Add ESM support
2023-04-19 00:05:50 +02:00
Anish Roy
a41bc5d256 transaction [WIP] 2023-04-18 15:32:16 +05:30
Anish Roy
dd481415fc removed _rowy_arrayTableData and expanded _rowy_ref 2023-04-14 17:56:12 +05:30
Anish Roy
da0cf161df worked on array subtable 2023-04-12 17:43:07 +05:30
Yaman Katby
8254623c2c fix redo action template 2023-04-06 17:38:40 +03:00
Yaman Katby
e841c994e5 Update the derivative default template 2023-04-06 17:30:21 +03:00
Yaman Katby
13c1b69386 update the action and the redo code templates 2023-04-06 17:26:03 +03:00
Yaman Katby
0bc104d07e convert the import into comment 2023-04-06 17:18:59 +03:00
Yaman Katby
bc815afe74 update the connector field default value 2023-04-06 17:16:26 +03:00
Anish Roy
4f7fbb7919 fixed - Visual bug: in dropdown menu(Connector field) 2023-04-06 11:44:32 +05:30
Shams
00f2debcbe Merge pull request #1193 from rowyio/fix/export-to-date-bug
fix export crash due to toDate issue
2023-04-03 08:54:48 +02:00
Bobby Wang
f66e8b9880 fix commit history 2023-04-01 02:52:00 +13:00
Bobby Wang
a91b751995 fix export crash due to toDate issue 2023-04-01 02:37:14 +13:00
Shams
d9ebf9609d Merge branch 'develop' into import-files 2023-03-31 11:21:10 +02:00
Emmanuel Watila
d03e62fd56 Verified null checker 2023-03-17 10:36:16 +01:00
Emmanuel Watila
a35e5d6524 Stripped away null check and move them into getColors function - attempting to fix and error 2023-03-16 19:22:20 +01:00
Emmanuel Watila
8ecae1060e Changed the short-circuit to a tenary on SingleSelect Chip 2023-03-16 17:34:51 +01:00
Emmanuel Watila
cf25f7c4b6 Fixed SideDrawerChips 2023-03-15 11:19:45 +01:00
Emmanuel Watila
a12996048c Finally 🎉 - Deletion of colors and options done; reverted indigo to purple 2023-03-14 23:05:31 +01:00
Anish Roy
a648e33355 worked on export JSON reference 2023-03-14 12:23:53 +05:30
Anish Roy
7767505130 added support for geo-points 2023-03-14 12:22:55 +05:30
Emmanuel Watila
b0b897efd7 Deleting options and colors at the same time 2023-03-10 00:30:30 +01:00
Emmanuel Watila
5e9b211ff9 Fixed error on MultiSelect SideDrawerField 2023-03-08 01:23:43 +01:00
Emmanuel Watila
78cd3deabf Adding logic - but have a blocker on deleting colors alongside deleting options 2023-03-07 23:37:37 +01:00
Emmanuel Watila
d283a4721d Fixed color on multiselect chip in side drawer field and start of logic changes 2023-03-07 00:11:18 +01:00
Emmanuel Watila
bfa23ea829 Merge remote-tracking branch 'upstream/develop' into rowy-135 2023-03-06 12:57:13 +01:00
Emmanuel Watila
5c6a343161 Change check logic for values in SingleSelect and MultiSelect DisplayCells 2023-03-06 03:05:03 +01:00
Emmanuel Watila
4a3867b8b0 Select and MultiSelect chips are now colorized; working on fixing and implementing some logic 2023-03-06 02:25:02 +01:00
Emmanuel Watila
16c32b0fce Chip colors now being added to config and being returned and consumed in app - last task; showing colors on chips 2023-03-04 23:41:22 +01:00
Emmanuel Watila
9bcab13f53 Seperated components and moved files into a folder 2023-03-02 23:25:20 +01:00