Prevent focusing readOnly field/areas on click
This commit is contained in:
		@@ -64,6 +64,7 @@ TextArea {
 | 
				
			|||||||
    text: defaultText || ""
 | 
					    text: defaultText || ""
 | 
				
			||||||
    opacity: enabled ? 1 : theme.disabledElementsOpacity
 | 
					    opacity: enabled ? 1 : theme.disabledElementsOpacity
 | 
				
			||||||
    selectByMouse: true
 | 
					    selectByMouse: true
 | 
				
			||||||
 | 
					    activeFocusOnPress: ! readOnly
 | 
				
			||||||
    leftPadding: theme.spacing
 | 
					    leftPadding: theme.spacing
 | 
				
			||||||
    rightPadding: leftPadding
 | 
					    rightPadding: leftPadding
 | 
				
			||||||
    topPadding: theme.spacing / 1.5
 | 
					    topPadding: theme.spacing / 1.5
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -52,6 +52,7 @@ TextField {
 | 
				
			|||||||
    text: defaultText || ""
 | 
					    text: defaultText || ""
 | 
				
			||||||
    opacity: enabled ? 1 : theme.disabledElementsOpacity
 | 
					    opacity: enabled ? 1 : theme.disabledElementsOpacity
 | 
				
			||||||
    selectByMouse: true
 | 
					    selectByMouse: true
 | 
				
			||||||
 | 
					    activeFocusOnPress: ! readOnly
 | 
				
			||||||
    leftPadding: theme.spacing
 | 
					    leftPadding: theme.spacing
 | 
				
			||||||
    rightPadding: leftPadding
 | 
					    rightPadding: leftPadding
 | 
				
			||||||
    topPadding: theme.spacing / 1.5
 | 
					    topPadding: theme.spacing / 1.5
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user