mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-16 02:41:05 +00:00
Revert "Refactor prop types to omit redundant null
for null | HTMLElement
types" (#1008)
#996
This commit is contained in:
parent
49a94b0ee4
commit
653a601f9b
13 changed files with 35 additions and 40 deletions
|
@ -90,7 +90,7 @@
|
|||
|
||||
/**
|
||||
* Obtain a reference to the list HTML element
|
||||
* @type {HTMLDivElement}
|
||||
* @type {null | HTMLDivElement}
|
||||
*/
|
||||
export let listRef = null;
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
/**
|
||||
* Specify an element or list of elements to trigger the context menu.
|
||||
* If no element is specified, the context menu applies to the entire window
|
||||
* @type {HTMLElement | HTMLElement[]}
|
||||
* @type {null | HTMLElement | HTMLElement[]}
|
||||
*/
|
||||
export let target = null;
|
||||
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
|
||||
/**
|
||||
* Obtain a reference to the input HTML element
|
||||
* @type {HTMLInputElement}
|
||||
* @type {null | HTMLInputElement}
|
||||
*/
|
||||
export let ref = null;
|
||||
|
||||
|
|
|
@ -136,13 +136,13 @@
|
|||
|
||||
/**
|
||||
* Obtain a reference to the field box element
|
||||
* @type {HTMLDivElement}
|
||||
* @type {null | HTMLDivElement}
|
||||
*/
|
||||
export let fieldRef = null;
|
||||
|
||||
/**
|
||||
* Obtain a reference to the selection element
|
||||
* @type {HTMLDivElement}
|
||||
* @type {null | HTMLDivElement}
|
||||
*/
|
||||
export let selectionRef = null;
|
||||
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
/**
|
||||
* Finds the nearest parent tree node
|
||||
* @param {HTMLElement} node
|
||||
* @returns {HTMLElement}
|
||||
* @returns {null | HTMLElement}
|
||||
*/
|
||||
function findParentTreeNode(node) {
|
||||
if (node.classList.contains("bx--tree-parent-node")) return node;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue