Re-enabling a TextField doesn't work
Bug #1164634 reported by
Michael Terry
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu UI Toolkit |
Fix Released
|
Critical
|
Zsombor Egri | ||
ubuntu-ui-toolkit (Ubuntu) |
Fix Released
|
High
|
Unassigned |
Bug Description
Once a TextField is disabled, it cannot be re-enabled.
To reproduce:
1) Load up the Qml at the bottom of this report
2) Focus the TextField
3) Press Enter
What happens:
The field remains disabled
What should happen:
The field should stay enabled. Switch the TextField to a TextInput and it works correctly.
Code:
import QtQuick 2.0
import Ubuntu.Components 0.1
Rectangle {
width: 200
height: 40
TextField {
text: "Press Enter"
onAccepted: {
enabled = false;
enabled = true;
}
}
}
Related branches
lp://staging/~zsombi/ubuntu-ui-toolkit/textinputs-stay-disabled-when-reenabled
- PS Jenkins bot: Approve (continuous-integration)
- Florian Boucault: Pending requested
-
Diff: 335 lines (+106/-80)6 files modifiedmodules/Ubuntu/Components/TextArea.qml (+0/-18)
modules/Ubuntu/Components/TextField.qml (+0/-18)
modules/Ubuntu/Components/plugin/quickutils.cpp (+28/-0)
modules/Ubuntu/Components/plugin/quickutils.h (+5/-0)
tests/unit/tst_components/tst_textarea.qml (+21/-10)
tests/unit/tst_components/tst_textfield.qml (+52/-34)
lp://staging/~ken-vandine/ubuntu-ui-toolkit/raring.0.1.43
- Timo Jyrinki: Approve
-
Diff: 552 lines (+312/-55)9 files modifieddebian/changelog (+14/-0)
demos/ListItems.qml (+9/-0)
modules/Ubuntu/Components/TextArea.qml (+17/-10)
modules/Ubuntu/Components/TextField.qml (+0/-10)
modules/Ubuntu/Components/plugin/quickutils.cpp (+28/-0)
modules/Ubuntu/Components/plugin/quickutils.h (+5/-0)
tests/unit/tst_components/tst_textarea.qml (+125/-3)
tests/unit/tst_components/tst_textfield.qml (+90/-13)
themes/Ambiance/qmltheme/TextAreaDelegate.qml (+24/-19)
Changed in ubuntu-ui-toolkit: | |
status: | New → Confirmed |
importance: | Undecided → High |
assignee: | nobody → Zsombor Egri (zsombi) |
Changed in ubuntu-ui-toolkit: | |
importance: | High → Critical |
Changed in ubuntu-ui-toolkit: | |
status: | Confirmed → In Progress |
Changed in ubuntu-ui-toolkit (Ubuntu): | |
importance: | Undecided → High |
Changed in ubuntu-ui-toolkit: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Fix committed into lp:ubuntu-ui-toolkit at revision 430, scheduled for release in ubuntu-ui-toolkit, milestone Unknown