@suffolklitlab/alkiln 5.10.3 → 5.10.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/lib/scope.js +3 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -45,6 +45,12 @@ Format:
|
|
|
45
45
|
|
|
46
46
|
<!-- ## [Unreleased] -->
|
|
47
47
|
|
|
48
|
+
## [5.10.4] - 2024-03-25
|
|
49
|
+
|
|
50
|
+
### Fixed
|
|
51
|
+
|
|
52
|
+
- Fixes text fields did not get cleared before entering new text. Created problems with text fields that had pre-existing answers, like default answers.
|
|
53
|
+
|
|
48
54
|
## [5.10.3] - 2024-03-23
|
|
49
55
|
|
|
50
56
|
### Fixed
|
package/lib/scope.js
CHANGED
|
@@ -1979,6 +1979,9 @@ module.exports = {
|
|
|
1979
1979
|
const typing_cutoff = 300;
|
|
1980
1980
|
const slice_value = -3;
|
|
1981
1981
|
|
|
1982
|
+
// Deleting preexisting text here is slower, but more clear and maintainable
|
|
1983
|
+
await handle.evaluate(( elem ) => { elem.value = ``; });
|
|
1984
|
+
|
|
1982
1985
|
let is_ajax = await handle.evaluate(( elem, text, typing_cutoff, slice_value ) => {
|
|
1983
1986
|
// For long strings or ajax comboboxes, set the value of the field to
|
|
1984
1987
|
// most of the text. This will be faster in those cases.
|