Ticket #4706 (closed bug: fixed)
Dialog: can't get value from textarea in modal dialog second time dialog is opened in Opera
| Reported by: | vrn_shan | Owned by: | |
|---|---|---|---|
| Priority: | critical | Milestone: | 1.8 |
| Component: | ui.dialog | Version: | 1.7.2 |
| Keywords: | Cc: | ||
| Blocking: | Blocked by: |
Description
See
Steps to reproduce in Opera:
- Click 'click here' link to open the dialog
- Type 'some text' in the textarea
- Click 'Alert' button to close the dialog
- See 'some text' in the alert
- Close the dialog
- Click 'click here' link to open the dialog
- Type 'some more text' in the textarea
- Click 'Alert' button to close the dialog
Expected result:
- See 'some more text' in the alert
Actual result:
- See no text in the alert
Doesn't happen if you set modal: false, or do in browsers other than Opera.
Change History
comment:2 Changed 4 years ago by joern.zaefferer
Another odd behaviour: Don't remove the textarea value on the button-click, then open the dialog, enter something, alert, close, open, remove text manually, alert - that will still alert what you entered previously.
comment:3 Changed 4 years ago by joern.zaefferer
Further refactored code: http://jsbin.com/ajasu/edit
Note: See
TracTickets for help on using
tickets.


Refactored testpage: http://jsbin.com/ovovo/edit