File tree Expand file tree Collapse file tree 1 file changed +7
-9
lines changed Expand file tree Collapse file tree 1 file changed +7
-9
lines changed Original file line number Diff line number Diff line change @@ -148,14 +148,14 @@ export class TextField extends TextFieldBase {
148
148
}
149
149
150
150
// we need to override this from N as in MDC case the range is 0
151
- if ( range . length > 0 ) {
152
- const delta = replacementString . length - range . length ;
153
- if ( delta > 0 ) {
154
- if ( textField . text . length + delta > this . maxLength ) {
155
- return false ;
156
- }
151
+ // if (range.length > 0) {
152
+ const delta = replacementString . length - range . length ;
153
+ if ( delta > 0 ) {
154
+ if ( textField . text . length + delta > this . maxLength ) {
155
+ return false ;
157
156
}
158
157
}
158
+ // }
159
159
160
160
if ( this . updateTextTrigger === 'textChanged' ) {
161
161
if ( textField . secureTextEntry && this . firstEdit ) {
@@ -179,18 +179,16 @@ export class TextField extends TextFieldBase {
179
179
}
180
180
181
181
_getTextInsetsForBounds ( insets : UIEdgeInsets ) : UIEdgeInsets {
182
-
183
182
const style = this . style ;
184
183
185
-
186
184
if ( this . variant === 'underline' && this . _controller . underlineHeightNormal === 0 ) {
187
185
// if no underline/custom background, remove all insets like on android
188
186
insets . top = 0 ;
189
187
insets . bottom = 0 ;
190
188
}
191
189
192
190
if ( paddingTopProperty . isSet ( style ) ) {
193
- insets . top = Utils . layout . toDeviceIndependentPixels ( this . effectivePaddingTop ) ;
191
+ insets . top = Utils . layout . toDeviceIndependentPixels ( this . effectivePaddingTop ) ;
194
192
}
195
193
if ( paddingRightProperty . isSet ( style ) ) {
196
194
insets . right = Utils . layout . toDeviceIndependentPixels ( this . effectivePaddingRight ) ;
You can’t perform that action at this time.
0 commit comments