@fto-consult/expo-ui 6.16.0 → 6.16.3
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/package.json
CHANGED
|
@@ -637,12 +637,16 @@ export default class Field extends AppComponent {
|
|
|
637
637
|
isHtml(){
|
|
638
638
|
return false;
|
|
639
639
|
}
|
|
640
|
+
canHandleMediaQueryUpdate(){
|
|
641
|
+
return !this.isFilter() && this.props.responsive !== false;
|
|
642
|
+
}
|
|
640
643
|
doUpdateMediaQueryStyle(args){
|
|
644
|
+
if(!this.canHandleMediaQueryUpdate()) return;
|
|
641
645
|
const wrapperStyle = this.getMediaQueryUpdateStyle(args);
|
|
642
646
|
this.setState({isMobile:args.isMobile,wrapperStyle});
|
|
643
647
|
}
|
|
644
648
|
getMediaQueryUpdateStyle(args){
|
|
645
|
-
if(this.
|
|
649
|
+
if(!this.canHandleMediaQueryUpdate()) return null;
|
|
646
650
|
if(!isObj(args)){
|
|
647
651
|
args = Dimensions.getDimensionsProps();
|
|
648
652
|
}
|
|
@@ -877,6 +881,9 @@ export default class Field extends AppComponent {
|
|
|
877
881
|
/>
|
|
878
882
|
}
|
|
879
883
|
const isFilter = this.isFilter();
|
|
884
|
+
if(isFilter){
|
|
885
|
+
responsive = false;
|
|
886
|
+
}
|
|
880
887
|
rest = defaultObj(rest);
|
|
881
888
|
data = defaultObj(data);
|
|
882
889
|
this.label = label = defaultVal(label,text);
|