Ewl » Canonical The canonical version of EWL Read More
Clone URL:  
Pushed to 2 repositories · View In Graph Contained in tip and canonical

Fixed focusability conditions in form controls so disabled controls don't try to
take focus.

Changeset 1f434bb5474e

Parent 47b04885683c

by Profile picture of William GrossWilliam Gross

Changes to 4 files · Browse files at 1f434bb5474e Showing diff from parent 47b04885683c Diff from another changeset...

 
132
133
134
135
 
136
137
138
 
132
133
134
 
135
136
137
138
@@ -132,7 +132,7 @@
    return new DisplayableElementLocalData(   "input", - new FocusabilityCondition( true ), + new FocusabilityCondition( !isReadOnly ),   isFocused => {   if( isFocused )   attributes.Add( Tuple.Create( "autofocus", "autofocus" ) );
 
64
65
66
67
 
68
69
70
 
64
65
66
 
67
68
69
70
@@ -64,7 +64,7 @@
    return new ElementLocalData(   "textarea", - new FocusabilityCondition( true ), + new FocusabilityCondition( !setup.IsReadOnly ),   isFocused => new ElementFocusDependentData(   attributes: attributes,   includeIdAttribute: true,
 
220
221
222
223
 
224
225
226
 
220
221
222
 
223
224
225
226
@@ -220,7 +220,7 @@
    return new DisplayableElementLocalData(   "input", - new FocusabilityCondition( true ), + new FocusabilityCondition( !isReadOnly ),   isFocused => {   if( isFocused )   attributes.Add( Tuple.Create( "autofocus", "autofocus" ) );
 
329
330
331
332
 
333
334
335
 
329
330
331
 
332
333
334
335
@@ -329,7 +329,7 @@
    return new DisplayableElementLocalData(   inputElementType.Any() ? "input" : "textarea", - new FocusabilityCondition( true ), + new FocusabilityCondition( !isReadOnly ),   isFocused => {   if( isFocused )   attributes.Add( Tuple.Create( "autofocus", "autofocus" ) );