@rmwc/select
Advanced tools
Comparing version 8.0.3 to 8.0.4
@@ -58,5 +58,3 @@ "use strict"; | ||
return { | ||
setSelectedText: function (text) { | ||
setSelectedTextContent(text); | ||
}, | ||
setSelectedText: function (text) { return setSelectedTextContent(text); }, | ||
openMenu: function () { | ||
@@ -87,2 +85,7 @@ setMenuOpen(true); | ||
setSelectAnchorAttr: function (attr, value) { | ||
if (attr === 'tabindex') { | ||
if (isNative()) | ||
return; | ||
attr = 'tabIndex'; | ||
} | ||
return anchorEl.setProp(attr, value); | ||
@@ -106,11 +109,6 @@ }, | ||
} | ||
if (menu.current === undefined) { | ||
return -1; | ||
} | ||
var index = menu.current.selectedIndex; | ||
return index instanceof Array ? index[0] : index; | ||
return selectedIndex.current; | ||
}, | ||
setSelectedIndex: function (index) { | ||
var _a; | ||
return (_a = menu.current) === null || _a === void 0 ? void 0 : _a.setSelectedIndex(index); | ||
return selectedIndex; | ||
} | ||
@@ -117,0 +115,0 @@ }; |
@@ -55,5 +55,3 @@ import { __assign, __read, __rest } from "tslib"; | ||
return { | ||
setSelectedText: function (text) { | ||
setSelectedTextContent(text); | ||
}, | ||
setSelectedText: function (text) { return setSelectedTextContent(text); }, | ||
openMenu: function () { | ||
@@ -84,2 +82,7 @@ setMenuOpen(true); | ||
setSelectAnchorAttr: function (attr, value) { | ||
if (attr === 'tabindex') { | ||
if (isNative()) | ||
return; | ||
attr = 'tabIndex'; | ||
} | ||
return anchorEl.setProp(attr, value); | ||
@@ -103,11 +106,6 @@ }, | ||
} | ||
if (menu.current === undefined) { | ||
return -1; | ||
} | ||
var index = menu.current.selectedIndex; | ||
return index instanceof Array ? index[0] : index; | ||
return selectedIndex.current; | ||
}, | ||
setSelectedIndex: function (index) { | ||
var _a; | ||
return (_a = menu.current) === null || _a === void 0 ? void 0 : _a.setSelectedIndex(index); | ||
return selectedIndex; | ||
} | ||
@@ -114,0 +112,0 @@ }; |
{ | ||
"name": "@rmwc/select", | ||
"version": "8.0.3", | ||
"version": "8.0.4", | ||
"description": "RMWC Select component", | ||
@@ -40,13 +40,13 @@ "main": "dist/index.js", | ||
"@material/select": "^8.0.0", | ||
"@rmwc/base": "^8.0.3", | ||
"@rmwc/floating-label": "^8.0.3", | ||
"@rmwc/icon": "^8.0.3", | ||
"@rmwc/line-ripple": "^8.0.3", | ||
"@rmwc/list": "^8.0.3", | ||
"@rmwc/menu": "^8.0.3", | ||
"@rmwc/notched-outline": "^8.0.3", | ||
"@rmwc/ripple": "^8.0.3", | ||
"@rmwc/types": "^8.0.3" | ||
"@rmwc/base": "^8.0.4", | ||
"@rmwc/floating-label": "^8.0.4", | ||
"@rmwc/icon": "^8.0.4", | ||
"@rmwc/line-ripple": "^8.0.4", | ||
"@rmwc/list": "^8.0.4", | ||
"@rmwc/menu": "^8.0.4", | ||
"@rmwc/notched-outline": "^8.0.4", | ||
"@rmwc/ripple": "^8.0.4", | ||
"@rmwc/types": "^8.0.4" | ||
}, | ||
"gitHead": "d9befec0e3b258864b71686eecd16c16feb43cf1" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
105250
1834
Updated@rmwc/base@^8.0.4
Updated@rmwc/floating-label@^8.0.4
Updated@rmwc/icon@^8.0.4
Updated@rmwc/line-ripple@^8.0.4
Updated@rmwc/list@^8.0.4
Updated@rmwc/menu@^8.0.4
Updated@rmwc/notched-outline@^8.0.4
Updated@rmwc/ripple@^8.0.4
Updated@rmwc/types@^8.0.4