Ticket #7183 (closed defect: fixed)
CurrencyTextBox: Fails to validate after a build
| Reported by: | dante | Owned by: | peller |
|---|---|---|---|
| Priority: | normal | Milestone: | 1.2 |
| Component: | ShrinkSafe | Version: | 1.1.1 |
| Severity: | normal | Keywords: | |
| Cc: | peller, doughays |
Description (last modified by bill) (diff)
Using the sample markup:
<input id="textboxtab-currencybox" name="textboxtab[currencybox]" value=""
type="text" currency="USD"
invalidMessage="Invalid amount. Include dollar sign, commas, and cents."
constraints="{'fractional':'true'}" required="1" dojoType="dijit.form.CurrencyTextBox" />
(and other tested variations of constrints and symbols, currencytextbox fails to validate properly, but only after a build.
This issue can be seen (and has been verified) against AOL Dojo 1.1.1, 1.1.0, a trunk build as of 7/14/08 ... It only works properly with an unbuilt Dojo. More specifically, it seems to work when CurrencyTextBox is NOT included in a layer. Eg: dojo.require the textbox seems to work, but loading it as part of a layer does not?
To reproduce: Type in the box using a layer: "$1,000.00" .. The validation only goes away with non-build, or isolated dojo.require
Marking 1.2 for now as it seems a serious shortcoming, feel free to do with as you choose. I've not the foggiest idea where to being investigating this. A workaround would be awesome.