mirror of
https://github.com/frappe/books.git
synced 2025-02-04 04:58:30 +00:00
16 lines
400 B
JavaScript
16 lines
400 B
JavaScript
const BaseControl = require('./base');
|
|
|
|
class FloatControl extends BaseControl {
|
|
make() {
|
|
super.make();
|
|
this.input.setAttribute('type', 'text');
|
|
this.input.classList.add('text-right');
|
|
this.input.addEventListener('focus', () => {
|
|
setTimeout(() => {
|
|
this.input.select();
|
|
}, 100);
|
|
})
|
|
}
|
|
};
|
|
|
|
module.exports = FloatControl; |