diff --git a/b2g/chrome/content/webapi.js b/b2g/chrome/content/webapi.js index 28931ab1c84..e813b925fc4 100644 --- a/b2g/chrome/content/webapi.js +++ b/b2g/chrome/content/webapi.js @@ -37,6 +37,12 @@ XPCOMUtils.defineLazyGetter(Services, 'fm', function() { return false; let type = targetElement.type; + // FIXME/bug 344616 is input type='number' + // Until then, let's return 'number' even if the platform returns 'text' + let attributeType = targetElement.getAttribute('type'); + if (attributeType && attributeType.toLowerCase() === 'number') + type = 'number'; + fireEvent('showime', { type: type }); return true; }