handsontable 0.0.0-next-549d023-20240119 → 0.0.0-next-c1ee222-20240126

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of handsontable might be problematic. Click here for more details.

@@ -14,11 +14,12 @@ class CheckboxEditor extends _baseEditor.BaseEditor {
14
14
  return EDITOR_TYPE;
15
15
  }
16
16
  beginEditing(initialValue, event) {
17
- // Just some events connected with checkbox editor are delegated here. Some `keydown` events like `enter` and `space` key press
18
- // are handled inside `checkboxRenderer`. Some events come here from `editorManager`. Below `if` statement was created by author
19
- // for purpose of handling only `doubleclick` event which may be done on a cell with checkbox.
17
+ // Just some events connected with the checkbox editor are delegated here. Some `keydown` events like `enter` and
18
+ // `space` key presses are handled inside `checkboxRenderer`. Some events come here from `editorManager`. The below
19
+ // `if` statement was created by the author for the purpose of handling only the `doubleclick` event on the TD
20
+ // element with a checkbox.
20
21
 
21
- if (event && event.type === 'mouseup') {
22
+ if (event && event.type === 'mouseup' && event.target.nodeName === 'TD') {
22
23
  const checkbox = this.TD.querySelector('input[type="checkbox"]');
23
24
  if (!(0, _element.hasClass)(checkbox, 'htBadValue')) {
24
25
  checkbox.click();
@@ -11,11 +11,12 @@ export class CheckboxEditor extends BaseEditor {
11
11
  return EDITOR_TYPE;
12
12
  }
13
13
  beginEditing(initialValue, event) {
14
- // Just some events connected with checkbox editor are delegated here. Some `keydown` events like `enter` and `space` key press
15
- // are handled inside `checkboxRenderer`. Some events come here from `editorManager`. Below `if` statement was created by author
16
- // for purpose of handling only `doubleclick` event which may be done on a cell with checkbox.
14
+ // Just some events connected with the checkbox editor are delegated here. Some `keydown` events like `enter` and
15
+ // `space` key presses are handled inside `checkboxRenderer`. Some events come here from `editorManager`. The below
16
+ // `if` statement was created by the author for the purpose of handling only the `doubleclick` event on the TD
17
+ // element with a checkbox.
17
18
 
18
- if (event && event.type === 'mouseup') {
19
+ if (event && event.type === 'mouseup' && event.target.nodeName === 'TD') {
19
20
  const checkbox = this.TD.querySelector('input[type="checkbox"]');
20
21
  if (!hasClass(checkbox, 'htBadValue')) {
21
22
  checkbox.click();
package/helpers/mixed.js CHANGED
@@ -134,7 +134,7 @@ const domMessages = {
134
134
  function _injectProductInfo(key, element) {
135
135
  const hasValidType = !isEmpty(key);
136
136
  const isNonCommercial = typeof key === 'string' && key.toLowerCase() === 'non-commercial-and-evaluation';
137
- const hotVersion = "0.0.0-next-549d023-20240119";
137
+ const hotVersion = "0.0.0-next-c1ee222-20240126";
138
138
  let keyValidityDate;
139
139
  let consoleMessageState = 'invalid';
140
140
  let domMessageState = 'invalid';
package/helpers/mixed.mjs CHANGED
@@ -124,7 +124,7 @@ const domMessages = {
124
124
  export function _injectProductInfo(key, element) {
125
125
  const hasValidType = !isEmpty(key);
126
126
  const isNonCommercial = typeof key === 'string' && key.toLowerCase() === 'non-commercial-and-evaluation';
127
- const hotVersion = "0.0.0-next-549d023-20240119";
127
+ const hotVersion = "0.0.0-next-c1ee222-20240126";
128
128
  let keyValidityDate;
129
129
  let consoleMessageState = 'invalid';
130
130
  let domMessageState = 'invalid';
package/package.json CHANGED
@@ -10,7 +10,7 @@
10
10
  "url": "https://github.com/handsontable/handsontable/issues"
11
11
  },
12
12
  "author": "Handsoncode <hello@handsontable.com>",
13
- "version": "0.0.0-next-549d023-20240119",
13
+ "version": "0.0.0-next-c1ee222-20240126",
14
14
  "main": "index",
15
15
  "module": "index.mjs",
16
16
  "jsnext:main": "index.mjs",