ar-design 0.2.93 → 0.2.95
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.
|
@@ -21,7 +21,6 @@ const Tooltip = ({ children, text, direction = "top" }) => {
|
|
|
21
21
|
const childRect = child.getBoundingClientRect();
|
|
22
22
|
const tooltipRect = tooltip.getBoundingClientRect();
|
|
23
23
|
const isOnRight = childRect.left > screenCenterX;
|
|
24
|
-
console.log(tooltipRect.left);
|
|
25
24
|
if (direction === "top" || direction === "bottom") {
|
|
26
25
|
if (isOnRight && tooltipRect.right > windowWidth - 10) {
|
|
27
26
|
direction = "left";
|
|
@@ -138,7 +138,7 @@ export const useValidation = function (data, params, step) {
|
|
|
138
138
|
param.shape?.forEach((s) => {
|
|
139
139
|
const key = getKey(param.subkey);
|
|
140
140
|
if (param.where) {
|
|
141
|
-
if (s.type === "required" &&
|
|
141
|
+
if (s.type === "required" && param.where(data)) {
|
|
142
142
|
Utils.IsNullOrEmpty(value) && setError(param.subkey ? key : param.key, s.message, param.step);
|
|
143
143
|
}
|
|
144
144
|
}
|